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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
push ebx
mov ebx, ecx
xor ecx, ecx
mov al, cl
mov dword [esp + 0x28], ecx
mov byte [esp + 0xc], al
mov byte [esp + 0xb], al
mov eax, dword [ebp + 0x2c]
push esi
mov byte [esp + 0xe], cl
mov byte [esp + 0x11], cl
mov edx, dword [eax + 0x81c]
mov esi, dword [eax + 0x82c]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x74], edx
mov edx, dword [eax + 0x30]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x7c]
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x64], esi
call fcn.0042fa32
xor eax, eax
mov dword [esp + 0x58], 4
lea ecx, [esp + 0x100]
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], eax
mov byte [esp + 0x37], al
mov dword [esp + 0x20], eax
call fcn.004250c8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
movzx eax, ax
mov byte [esp + 0x17], cl
mov edi, dword [esi + 0x20]
cdq
or eax, ecx
mov byte [esp + 0x16], cl
mov dword [esp + 0x4c], eax
xor edx, edx
mov eax, dword [edi]
or edx, dword [ebp + 8]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
mov dword [esp + 0x50], edx
call dword [0x488254]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x64]
mov edx, eax
call fcn.00437e97
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x2c]
lea ecx, [esp + 0x1b]
push dword [ebp + 8]
mov edi, dword [esp + 0x5c]
push ecx
imul edx, eax
lea ecx, [ebx + 4]
xor eax, eax
push eax
push esi
push dword [ebp + 0x28]
mov dword [esp + 0x30], edx
push eax
push eax
mov word [edi], ax
mov byte [edi + 2], al
call fcn.004733bc
test al, al
je 0x477f3a
cmp byte [edi + 2], 0
je 0x47756e
mov byte [esp + 0x30], 1
jmp 0x477f3a
cmp byte [edi + 1], 0
jne 0x477eac
cmp byte [edi], 0
jne 0x477eac
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x100]
mov ebx, dword [esp + 0x50]
push edi
push ebx
push dword [esi + 0x83c]
push dword [esp + 0x44]
call fcn.004251c8
test al, al
je 0x477f3a
lea ecx, [esp + 0x100]
call fcn.0042df90
test al, al
je 0x477f3a
push esi
push ecx
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x11c]
push eax
call fcn.00475727
test al, al
je 0x477eac
mov eax, dword [esp + 0x54]
cmp byte [eax + 1], 0
jne 0x477eac
push edi
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x16]
push ebx
push esi
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x57]
push eax
push dword [ebp + 0x10]
call fcn.00475dc5
test al, al
je 0x477eac
mov eax, dword [esp + 0x54]
cmp byte [eax], 0
jne 0x477eac
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x477653
cmp dword [esp + 0x7c], edi
jne 0x477eac
movzx ecx, byte [esp + 0x90]
mov eax, dword [esp + 0x94]
mov ebx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], ecx
test ecx, ecx
jne 0x47767b
mov ecx, eax
shr ecx, 9
mov dword [esp + 0x48], ecx
mov ebx, ecx
test edi, edi
je 0x477695
push 0
push eax
push dword [edi + 0x34]
push dword [edi + 0x30]
call fcn.004833f1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
push ecx
push ecx
mov eax, esp
or ecx, 0xffffffff
mov dword [eax], ecx
mov dword [eax + 4], ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040abeb
test al, al
je 0x47774b
mov edi, dword [esp + 0x2c]
mov ebx, dword [edi + 0x40]
test ebx, ebx
je 0x477f64
push ecx
push ecx
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040abeb
test al, al
je 0x477733
cmp dword [ebp + 0x24], 0
jne 0x477733
mov eax, dword [ebp + 0xc]
mov word [esp + 0x24], ax
mov ax, word [ebp + 0xe]
mov word [esp + 0x26], ax
lea eax, [esp + 0x13]
push dword [esp + 0x24]
push dword [ebp + 8]
push esi
push eax
lea eax, [esp + 0x22]
push eax
push dword [esp + 0x50]
push edi
push ebx
call fcn.00477044
mov bl, byte [esp + 0x13]
test al, al
je 0x477eae
test bl, bl
jne 0x477729
cmp byte [esp + 0x12], bl
jne 0x477d3b
mov byte [esp + 0x30], 1
jmp 0x477eae
mov ecx, dword [edi + 0x30]
lea edx, [ebx + 0x10]
mov eax, dword [edi + 0x34]
add ecx, ebx
mov bl, byte [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x477955
test edi, edi
je 0x477f5f
push ebx
push 0
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004833f7
mov dword [esp + 0x24], ebx
pop ebx
nop
cmp edx, dword [esp + 0x68]
ja 0x477f5f
jb 0x47777e
cmp eax, dword [esp + 0x6c]
jae 0x477f5f
or ecx, dword [esp + 0x20]
jne 0x477f5f
mov ecx, dword [esp + 0x48]
xor ebx, ebx
mov eax, dword [esp + 0x28]
push ebx
push ecx
push dword [ebp + 0x18]
cdq
push dword [ebp + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x54], edx
call fcn.004833d3
push dword [esp + 0x44]
push dword [esp + 0x20]
push edx
push eax
call fcn.004833df
push ebx
push dword [esp + 0x1c]
push edx
push eax
call fcn.004833d3
push ecx
push ecx
mov ebx, eax
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040cf55
test al, al
je 0x477803
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x477f64
push edx
push ebx
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00424910
test al, al
je 0x477f64
push ecx
push ecx
mov eax, esp
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040cf55
test al, al
je 0x477852
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0040cf55
test al, al
je 0x477852
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0040cf55
test al, al
jne 0x477f64
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x70], eax
call fcn.0040b083
mov dword [esp + 0x40], eax
test eax, eax
je 0x477f64
xor ebx, ebx
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x20]
push dword [esp + 0x2c]
call fcn.004833d3
push dword [esp + 0x44]
push dword [esp + 0x20]
push edx
push eax
call fcn.004833df
push edx
push eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push eax
push ebx
push dword [esp + 0x54]
mov ecx, edi
call fcn.0041d691
test al, al
je 0x477eac
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x5c], edi
jne 0x477eac
push dword [esp + 0x18]
lea eax, [esp + 0x16]
push dword [esp + 0x24]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push esi
push ecx
push dword [ebp + 0x10]
push eax
push ebx
push ecx
push dword [esp + 0x68]
mov ecx, dword [esp + 0x90]
call fcn.00475b93
test al, al
je 0x477eac
cmp byte [esp + 0x12], 0
jne 0x477eac
push dword [esp + 0x4c]
lea eax, [esp + 0x16]
push dword [esp + 0x54]
push esi
push ecx
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x2b]
push eax
sub esp, 0xc
push dword [esp + 0x80]
push ebx
mov ebx, dword [esp + 0x70]
push ecx
push ebx
call fcn.00475a29
test al, al
je 0x477eac
cmp byte [esp + 0x12], 0
jne 0x477eac
lea edx, [ebx + 0x18]
lea ecx, [edi + ebx]
mov bl, byte [esp + 0x13]
mov eax, dword [edx]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], eax
lea edi, [eax + edx]
cmp ecx, edi
jb 0x477e83
push dword [esp + 0x58]
mov edx, ecx
mov ecx, edi
push dword [esp + 0x7c]
sub edx, edi
call fcn.00430f75
test al, al
jne 0x477eac
mov ecx, dword [esp + 0x28]
call fcn.0040b083
mov dword [esp + 0x60], eax
test eax, eax
je 0x477eae
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x477b49
cmp dword [esp + 0x18], eax
jne 0x477b49
mov eax, dword [esp + 0x44]
mov cl, byte [eax + 0xc]
mov dl, cl
and dl, 1
test byte [edi + 0xc], 1
je 0x477b3a
test dl, dl
jne 0x4779d9
or cl, 1
mov byte [esp + 0x12], 1
mov byte [eax + 0xc], cl
movzx eax, word [edi + 8]
mov ecx, dword [eax + edi - 8]
mov edx, dword [eax + edi - 4]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x78], ecx
push edx
push ecx
mov dword [esp + 0x30], edx
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
call fcn.0040cf55
test al, al
je 0x477b49
push ebx
xor eax, eax
push eax
push dword [esp + 0x50]
mov byte [esp + 0x20], al
push edx
push ecx
call fcn.004833f7
or ecx, ebx
pop ebx
nop
jne 0x477afe
cmp dword [esp + 0x3c], 0
je 0x477afe
cmp edx, dword [esp + 0x68]
ja 0x477afe
jb 0x477a45
cmp eax, dword [esp + 0x6c]
jae 0x477afe
xor ebx, ebx
push ebx
push dword [esp + 0x4c]
push dword [esp + 0x28]
push dword [esp + 0x7c]
call fcn.004833d3
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x28]
cdq
push edx
push eax
push ecx
push esi
call fcn.004833df
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x68]
push eax
push ebx
push dword [esp + 0x74]
call fcn.0041d691
test al, al
je 0x477afe
cmp dword [esp + 0x5c], ebx
jne 0x477afe
push dword [esp + 0x20]
mov esi, dword [ebp + 0x2c]
lea eax, [esp + 0x18]
push dword [esp + 0x74]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push esi
push ecx
push dword [ebp + 0x10]
push eax
push ebx
push ecx
push dword [esp + 0x88]
mov ecx, dword [esp + 0x90]
call fcn.00475b93
test al, al
je 0x477b01
push dword [esp + 0x4c]
lea eax, [esp + 0x18]
push dword [esp + 0x54]
push esi
push ecx
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x2b]
push eax
sub esp, 0xc
push dword [esp + 0x80]
push ebx
push ecx
push dword [esp + 0x94]
call fcn.00475a29
test al, al
je 0x477b01
mov cl, byte [esp + 0x15]
jmp 0x477b07
mov esi, dword [ebp + 0x2c]
mov cl, 1
mov byte [esp + 0x15], cl
cmp byte [esp + 0x12], 0
mov al, byte [esp + 0x14]
jne 0x477b1a
test cl, cl
jne 0x477b1a
test al, al
je 0x477b49
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x12], 1
cmp ebx, 5
jne 0x477bdd
mov byte [esp + 0x30], 1
mov bl, byte [esp + 0x13]
jmp 0x477eae
test dl, dl
je 0x477b49
and cl, 0xfe
mov byte [esp + 0x12], 1
mov byte [eax + 0xc], cl
test byte [edi + 0xc], 2
jne 0x477c84
movzx eax, word [edi + 8]
mov ecx, dword [esp + 0x1c]
lea ebx, [edi + eax]
cmp ecx, ebx
jb 0x477c0f
push dword [esp + 0x58]
mov edx, ecx
mov ecx, ebx
push dword [esp + 0x7c]
sub edx, ebx
call fcn.00430f75
test al, al
jne 0x477c0b
mov edx, dword [ebp + 0x24]
cmp dword [esp + 0x18], edx
jne 0x477bce
cmp byte [esp + 0x12], al
jne 0x477bce
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 0x5a4]
push eax
call fcn.0041fe70
test eax, eax
jne 0x477bce
push esi
lea eax, [esp + 0x16]
push eax
lea eax, [edi + 0x10]
push eax
movzx eax, word [edi + 0xa]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0047739f
test al, al
je 0x477b31
cmp byte [esp + 0x12], 0
jne 0x477bfc
movzx eax, word [edi + 8]
mov edi, ebx
add dword [esp + 0x18], eax
jmp 0x47799e
test cl, cl
jne 0x477be9
test al, al
je 0x477c88
movzx eax, word [edi + 8]
or dword [eax + edi - 8], 0xffffffff
or dword [eax + edi - 4], 0xffffffff
jmp 0x477c88
mov bl, byte [esp + 0x13]
mov al, 1
mov edi, dword [esp + 0x2c]
jmp 0x477d3f
movzx eax, word [edi + 8]
movzx ecx, ax
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [ebp + 0x24]
jne 0x477eac
cmp dword [esp + 0x38], 5
mov byte [esp + 0x12], 1
je 0x477b2c
test byte [edi + 0xc], 1
je 0x477c41
mov edx, dword [ecx + edi - 8]
mov ebx, dword [ecx + edi - 4]
jmp 0x477c49
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
and dword [edi], 0
xor esi, esi
and dword [edi + 4], 0
movzx ecx, word [edi + 0xc]
mov eax, ecx
mov word [edi + 0xa], si
mov esi, dword [ebp + 0x2c]
and eax, 1
or ecx, 2
mov word [edi + 0xc], cx
lea eax, [eax*8 + 0x10]
movzx eax, ax
mov word [edi + 8], ax
test cl, 1
je 0x477c84
mov dword [eax + edi - 8], edx
mov dword [eax + edi - 4], ebx
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
movzx edx, word [edi + 8]
mov eax, dword [esp + 0x1c]
sub edx, ecx
add edx, edi
sub eax, ecx
mov dword [esp + 0x1c], eax
cmp dword [ecx + 4], edx
jne 0x477cce
cmp dword [ecx + 8], eax
jne 0x477cce
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040abeb
test al, al
je 0x477d30
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x477d30
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x12], 1
cmp ebx, 5
je 0x477b2c
push ecx
mov dword [ecx + 8], eax
push ecx
mov eax, esp
mov dword [ecx + 4], edx
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040abeb
mov edi, dword [esp + 0x2c]
test al, al
je 0x477d34
mov dword [ecx + 8], edx
lea eax, [edx + 0x10]
push dword [esi + 0x810]
push ecx
push ecx
mov ecx, esp
and dword [ecx + 4], 0
mov dword [ecx], eax
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
test al, al
jne 0x477d34
jmp 0x477b31
mov edi, dword [esp + 0x2c]
mov bl, byte [esp + 0x13]
mov esi, dword [ebp + 0x2c]
mov al, byte [esp + 0x16]
cmp dword [esp + 0x38], 4
jne 0x477729
cmp byte [esp + 0x12], 0
je 0x477729
test al, al
je 0x477d98
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x84]
call fcn.004302e0
test al, al
je 0x477eae
xor eax, eax
lea ecx, [esp + 0x100]
push eax
push eax
push dword [esi + 0x810]
call fcn.0042a125
test al, al
jne 0x477e47
jmp 0x477eae
push ecx
push ecx
mov eax, esp
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040abeb
test al, al
je 0x477dde
mov eax, dword [edi]
lea ecx, [esp + 0x100]
push dword [esi + 0x810]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
test al, al
je 0x477eae
mov esi, dword [ebp + 0x2c]
jmp 0x477d75
mov edi, dword [esp + 0x28]
mov edx, edi
mov ecx, dword [esp + 0x40]
call fcn.00437740
push dword [esi + 0x810]
lea eax, [esp + 0x60]
push eax
push edi
xor eax, eax
push eax
push dword [esp + 0x58]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004833d3
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
push edx
push eax
push ecx
push esi
call fcn.004833df
mov edi, dword [esp + 0x48]
push edx
push eax
push dword [esp + 0x54]
mov ecx, dword [edi]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
test al, al
je 0x477e7c
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x5c], eax
jne 0x477e7c
mov esi, dword [ebp + 0x2c]
push dword [esi + 0x810]
mov ecx, dword [esi + 0x844]
push dword [esi + 0x848]
call fcn.00438598
test al, al
je 0x477e7c
mov ecx, dword [esi + 0x810]
push ecx
push dword [esi + 0x808]
call fcn.00438598
test al, al
jne 0x477729
mov bl, 1
jmp 0x477729
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x78]
push eax
push dword [ebp + 0x10]
push 0x403de8
push 0x6a79
push dword [esp + 0x94]
call fcn.0040f251
add esp, 0x20
mov bl, 1
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x477ec8
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x477ee2
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x477efc
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x477f0b
mov ecx, eax
call fcn.0040b1df
mov eax, dword [esp + 0x60]
test eax, eax
je 0x477f1a
mov ecx, eax
call fcn.0040b1df
mov eax, dword [esp + 0x54]
test bl, bl
je 0x477f30
cmp byte [esp + 0x17], 0
je 0x477f2c
mov byte [eax], 1
mov byte [eax + 1], 1
cmp byte [esp + 0x12], 0
je 0x477f3a
mov byte [eax], 1
lea ecx, [esp + 0x100]
call fcn.00425135
lea ecx, [esp + 0x80]
call fcn.0042fab5
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov byte [esp + 0x30], 1
mov bl, byte [esp + 0x14]
jmp 0x477eae