Function at 0x5476d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fb776
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x407c
call fcn.005d9f90
mov eax, dword [0x68a01c]
xor eax, esp
mov dword [esp + 0x4078], eax
push ebx
push esi
push edi
mov eax, dword [0x68a01c]
xor eax, esp
push eax
lea eax, [esp + 0x4090]
mov dword fs:[0], eax
mov ebx, ecx
push 0x4000
lea ecx, [esp + 0x40]
call fcn.0052f3b0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x4098], 0
jne 0x547745
call fcn.005da118
mov edi, dword [esp + 0x48]
movzx esi, word [ebx + 0x28]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 2
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x30], esi
call eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x34]
push 0
push esi
push 0
push 0
cdq
push edx
mov edx, dword [ebx + 0x30]
push eax
push ecx
push edx
call fcn.005daa90
push edx
push eax
push edi
mov ecx, ebx
call fcn.005475b0
test al, al
je 0x5477b4
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x54779e
push eax
call fcn.005d9603
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
push eax
jmp 0x547bb1
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 1
push edi
mov ecx, ebx
call eax
mov ecx, edi
call fcn.00541250
movzx eax, ax
mov ecx, 0x4552
cmp ax, cx
jne 0x5479de
lea ecx, [edi + 2]
call fcn.00541250
mov edx, dword [esp + 0x4c]
sub edx, dword [esp + 0x48]
shr ax, 9
movzx eax, ax
movzx esi, ax
mov dword [esp + 0x1c], eax
mov eax, esi
shl eax, 9
mov dword [esp + 0x34], eax
cmp edx, eax
jae 0x54782e
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.005325d0
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x48]
jne 0x547824
call fcn.005da118
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x30], ecx
mov edi, ecx
push 0
mov eax, esi
cdq
push edx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
push esi
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xc]
push edi
mov ecx, ebx
call edx
mov ecx, edi
call fcn.00541250
mov ecx, 0x504d
cmp ax, cx
jne 0x5479a3
mov dword [esp + 0x14], esi
mov eax, 9
mov ecx, 0x61b9d0
lea edx, [edi + 0x30]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x54796e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x547870
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x54796e
lea ecx, [edi + 8]
call fcn.00533340
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x5479c7
lea ecx, [edi + 0xc]
call fcn.00533340
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], eax
call fcn.0052f3b0
mov edx, dword [esp + 0x74]
sub edx, dword [esp + 0x70]
mov byte [esp + 0x4098], 1
jne 0x5478d9
call fcn.005da118
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
xor edi, edi
push edi
push edi
push esi
push ecx
push edx
call fcn.005daa90
add eax, 2
mov esi, edi
adc edx, esi
push edx
push eax
mov eax, dword [esp + 0x7c]
push 1
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x70]
jne 0x547915
call fcn.005da118
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 2
push ecx
mov ecx, dword [esp + 0x78]
push edi
push edx
xor eax, eax
push eax
mov eax, dword [esp + 0x70]
push eax
push ecx
mov ecx, ebx
call fcn.005475b0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x4098], 0
cmp eax, esi
je 0x54794f
push eax
call fcn.005d9603
add esp, 4
mov edx, dword [esp + 0x64]
push edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call fcn.005d9603
mov edi, dword [esp + 0x34]
add esp, 4
jmp 0x547970
xor esi, esi
movzx ecx, word [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
cdq
push esi
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push ecx
push edi
mov ecx, ebx
call eax
mov ecx, edi
call fcn.00541250
mov ecx, 0x504d
cmp ax, cx
je 0x547861
mov eax, dword [esp + 0x48]
xor esi, esi
cmp eax, esi
je 0x5479b6
push eax
call fcn.005d9603
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
jmp 0x547bac
push 0x65ff54
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x2e
call fcn.005da128
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
push 0
push 0
push 0
push 1
push edi
mov ecx, ebx
call eax
mov esi, edi
mov ecx, 0x80
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x282]
call fcn.00541250
mov ecx, 0x55aa
cmp ax, cx
jne case.0x547a84.0
xor eax, eax
mov edi, 0x1c0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
jmp 0x547a40
lea ecx, [esp + edi + 0x8a]
call fcn.00541160
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je case.0x547a84.0
lea ecx, [esp + edi + 0x8e]
call fcn.00541160
mov dword [esp + 0x5c], eax
movzx eax, byte [esp + edi + 0x86]
cmp eax, 0xee
ja case.0x547a84.1
movzx edx, byte [eax + 0x547ddc]
jmp dword [edx*4 + 0x547dc8]
movzx eax, word [esp + 0x1c]
mov edi, dword [ebx]
xor ecx, ecx
add esi, dword [esp + 0x24]
push 0
adc ecx, dword [esp + 0x2c]
cdq
push ecx
push esi
push edx
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
call fcn.005daa90
mov esi, dword [esp + 0x34]
push edx
push eax
mov eax, dword [edi + 0xc]
push 1
push esi
mov ecx, ebx
call eax
mov ecx, 0x80
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x282]
call fcn.00541250
mov ecx, 0x55aa
cmp ax, cx
jne 0x547b76
mov ecx, dword [esp + 0x24]
or ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
jne 0x547b10
mov edx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0x1b0
jmp 0x547b76
add esi, dword [esp + 0x54]
movzx eax, word [esp + 0x1c]
mov ecx, esi
push 0
mov esi, 0
adc esi, dword [esp + 0x5c]
cdq
push esi
push ecx
push edx
push eax
mov dword [esp + 0x90], ecx
call fcn.005daa90
mov edi, dword [esp + 0x34]
add eax, 2
adc edx, 0
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push 1
push edi
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x7c]
push 4
push ecx
push esi
push edx
xor eax, eax
push eax
mov eax, dword [esp + 0x70]
push eax
push edi
mov ecx, ebx
call fcn.005475b0
mov edi, dword [esp + 0x14]
add edi, 0x10
cmp edi, 0x200
mov dword [esp + 0x14], edi
jl 0x547a40
mov eax, dword [esp + 0x48]
test eax, eax
je 0x547b9e
push eax
call fcn.005d9603
add esp, 4
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x3c]
push edx
call fcn.005d9603
add esp, 4
mov ecx, dword [esp + 0x4090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4078]
xor ecx, esp
call fcn.005d95f4
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x1c]
mov edx, dword [ebx]
imul eax, esi
mov edi, dword [esp + 0x30]
push 0
push 0
push eax
mov eax, dword [edx + 0xc]
push 1
push edi
mov ecx, ebx
call eax
mov eax, 0x61ba1c
mov ecx, edi
mov edx, 8
sub ecx, eax
jmp 0x547c10
mov esi, dword [ecx + eax]
cmp esi, dword [eax]
jne case.0x547a84.0
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x547c10
lea ecx, [edi + 0x50]
call fcn.00541160
lea ecx, [edi + 0x54]
mov esi, eax
call fcn.00541160
mov ecx, eax
movzx eax, word [esp + 0x1c]
cdq
mov dword [esp + 0x24], eax
mov eax, ecx
imul eax, esi
push 0
lea esi, [edi + 0x48]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
call fcn.00541180
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.005daa90
mov esi, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov edx, esi
shr edx, 9
push edx
push edi
mov ecx, ebx
call eax
mov dword [esp + 0x20], esi
cmp esi, 0x4000
jbe 0x547c9b
mov esi, 0x4000
mov dword [esp + 0x20], esi
push esi
lea ecx, [esp + 0x88]
push edi
push ecx
call fcn.005daf40
xor edi, edi
add esp, 0xc
mov dword [esp + 0x14], edi
test esi, esi
jle 0x547d9c
lea ecx, [esp + edi + 0x84]
call fcn.00541160
test eax, eax
je case.0x547a84.0
cmp eax, 0x48465300
jne 0x547d8c
lea esi, [esp + edi + 0xa4]
call fcn.00541180
mov esi, dword [esp + 0x14]
mov edi, eax
lea esi, [esp + esi + 0xac]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edx
call fcn.00541180
mov esi, eax
mov eax, dword [esp + 0x38]
mov ecx, edi
or ecx, eax
mov dword [esp + 0x60], edx
je case.0x547a84.0
mov ecx, esi
or ecx, edx
je case.0x547a84.0
cmp eax, edx
ja case.0x547a84.0
jb 0x547d30
cmp edi, esi
jae case.0x547a84.0
mov edx, dword [esp + 0x28]
push 0
push eax
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
call fcn.005daa90
mov edi, dword [esp + 0x34]
add eax, 2
adc edx, 0
push edx
push eax
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 1
push edi
mov ecx, ebx
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push 3
push eax
mov eax, dword [esp + 0x3c]
push ecx
push eax
sub esi, eax
mov eax, dword [esp + 0x70]
sbb eax, ecx
add esi, 1
adc eax, 0
push eax
push esi
push edi
mov ecx, ebx
call fcn.005475b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
add edi, dword [esp + 0x54]
cmp edi, esi
mov dword [esp + 0x14], edi
jl 0x547cbb
mov eax, dword [esp + 0x48]
test eax, eax
je 0x547dad
push eax
call fcn.005d9603
add esp, 4
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
push ecx
jmp 0x547bb1