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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2fc
mov eax, dword [0x484080]
xor eax, esp
mov dword [esp + 0x2f8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, ecx
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x1c], edx
mov cl, al
mov dword [esp + 0x10], eax
mov byte [esp + 0xb], cl
mov byte [esp + 0xd], cl
mov byte [esp + 0xe], cl
mov byte [esp + 0xc], cl
mov ecx, dword [edx + 0x81c]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 0x30]
push esi
mov esi, dword [edx + 0x82c]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x20c]
push edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], eax
mov dword [esp + 0x3c], eax
call fcn.00438357
lea ecx, [esp + 0x90]
call fcn.0042fa32
xor eax, eax
mov dword [esp + 0x54], 4
lea ecx, [esp + 0x110]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x33], al
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], eax
call fcn.004250c8
xor eax, eax
mov byte [esp + 0x23], al
mov edi, dword [esi + 0x20]
mov byte [esp + 0x17], al
mov dword [esp + 0x48], eax
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
push dword [esp + 0x28]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x27]
push dword [esp + 0x6c]
mov edi, dword [esp + 0x58]
xor eax, eax
push ecx
push eax
push esi
push dword [ebp + 0x1c]
lea ecx, [ebx + 4]
mov word [edi], ax
push eax
push eax
mov byte [edi + 2], al
call fcn.004733bc
test al, al
je 0x477005
cmp byte [edi + 2], 0
je 0x4767dc
mov bl, 1
jmp 0x477007
cmp byte [edi + 1], 0
jne 0x476f5e
cmp byte [edi], 0
jne 0x476f5e
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x110]
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x7c], eax
xor edi, edi
or edi, dword [esp + 0x68]
cdq
or eax, ebx
push eax
push edi
push dword [esi + 0x83c]
mov dword [esp + 0x4c], eax
push dword [esp + 0x8c]
call fcn.004251c8
test al, al
je 0x477007
lea ecx, [esp + 0x110]
call fcn.0042df90
test al, al
je 0x477007
push esi
push ecx
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x12c]
push eax
call fcn.00475727
test al, al
je 0x476f60
mov ecx, dword [esp + 0x50]
cmp byte [ecx + 1], bl
jne 0x476f60
cmp byte [ecx], bl
jne 0x476f60
push dword [esp + 0x40]
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x18]
push edi
push esi
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x53]
push eax
push dword [esp + 0x5c]
call fcn.00475dc5
test al, al
mov al, byte [esp + 0x14]
mov byte [esp + 0x16], al
je 0x476f60
test al, al
jne 0x476f60
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x3c]
test edi, edi
jne 0x4768ed
test esi, esi
jne 0x476f60
movzx eax, byte [esp + 0xa0]
mov dword [esp + 0x34], eax
test eax, eax
mov eax, dword [esp + 0xa4]
jne 0x47690d
mov ecx, eax
shr ecx, 9
mov dword [esp + 0x34], ecx
test edi, edi
je 0x47692a
push ebx
push eax
push dword [edi + 0x34]
push dword [edi + 0x30]
call fcn.004833f1
mov ecx, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x6c], ecx
jmp 0x47692c
mov ecx, ebx
test esi, esi
je 0x47696b
mov edx, dword [esp + 0x5c]
push ecx
push ecx
mov eax, esp
push ebx
push ebx
push ebx
mov dword [eax + 4], ecx
lea ecx, [esp + 0x224]
push 1
mov dword [eax], edx
call fcn.00438434
test al, al
je 0x476f60
push esi
lea ecx, [esp + 0x214]
call fcn.0043349a
test al, al
je 0x476f60
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x60], eax
test eax, eax
je 0x476f60
add eax, 0x10
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
movzx eax, ax
mov dword [esp + 0x28], eax
lea esi, [eax + 0x17]
and esi, 0xfff8
movzx eax, si
mov ecx, eax
mov dword [esp + 0x40], eax
call fcn.0040b083
mov dword [esp + 0x48], eax
test eax, eax
je 0x476f65
push dword [esp + 0x40]
push ebx
push eax
call fcn.0048341b
mov eax, dword [esp + 0x54]
add esp, 0xc
add eax, 0x10
push dword [ebp + 0x14]
push dword [esp + 0x78]
push eax
call fcn.0048340f
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov eax, dword [esp + 0x28]
push dword [esp + 0x24]
mov word [ecx + 0xa], ax
lea eax, [esp + 0x19]
push eax
lea eax, [esp + 0x1f]
mov word [ecx + 8], si
push eax
lea eax, [esp + 0x64]
push eax
push ecx
push dword [esp + 0x68]
push dword [esp + 0xe0]
push dword [esp + 0x38]
push dword [esp + 0x80]
push dword [esp + 0x88]
call fcn.004765e3
test al, al
je 0x476f54
mov al, byte [esp + 0x15]
mov byte [esp + 0x13], al
test al, al
jne 0x476f65
mov dl, byte [esp + 0x17]
test dl, dl
jne 0x476c3f
mov esi, dword [esp + 0x58]
test byte [esi + 0xc], 1
je 0x476c27
cmp dword [esp + 0x2c], 0
jne 0x476a79
mov ecx, dword [esp + 0xa4]
call fcn.0040b083
mov dword [esp + 0x2c], eax
test eax, eax
je 0x476f65
mov dl, byte [esp + 0x17]
movzx ecx, word [esi + 8]
push ecx
push ecx
mov eax, dword [ecx + esi - 8]
mov esi, dword [ecx + esi - 4]
mov dword [esp + 0x24], eax
mov eax, esp
mov ecx, dword [esp + 0x24]
push esi
push ecx
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
mov dword [esp + 0x38], esi
call fcn.0040abeb
test al, al
jne 0x476c27
push ebx
push ebx
push dword [esp + 0x3c]
push esi
push ecx
call fcn.004833f7
or ecx, ebx
pop ebx
nop
jne 0x476f5e
test edi, edi
je 0x476f5e
cmp edx, dword [esp + 0x6c]
ja 0x476f5e
jb 0x476ae0
cmp eax, dword [esp + 0x5c]
jae 0x476f5e
xor ebx, ebx
push ebx
push dword [esp + 0x38]
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.004833d3
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0xa4]
cdq
push edx
push eax
push ecx
push esi
call fcn.004833df
mov esi, dword [esp + 0xa4]
mov ecx, edi
push edx
push eax
push ebx
lea eax, [esp + 0x50]
push eax
push esi
push dword [esp + 0x40]
call fcn.0041d691
test al, al
je 0x476f60
cmp dword [esp + 0x44], esi
jne 0x476f60
push dword [esp + 0x28]
mov eax, dword [esp + 0x80]
xor ecx, ecx
push dword [esp + 0x20]
or ecx, dword [esp + 0x70]
cdq
or eax, ebx
mov dword [esp + 0x68], ecx
push eax
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
push ecx
push dword [esp + 0x50]
push eax
push esi
push ecx
push dword [esp + 0x54]
mov ecx, dword [esp + 0xa4]
call fcn.00475b93
test al, al
je 0x476c32
mov al, byte [esp + 0x14]
mov byte [esp + 0x16], al
test al, al
jne 0x476f60
push dword [esp + 0x64]
lea eax, [esp + 0x18]
push dword [esp + 0x64]
push dword [esp + 0x2c]
push ecx
push dword [esp + 0x48]
push eax
lea eax, [esp + 0x2d]
push eax
sub esp, 0xc
push dword [esp + 0x7c]
push esi
push ecx
push dword [esp + 0x60]
call fcn.00475a29
test al, al
je 0x476c32
mov al, byte [esp + 0x14]
mov byte [esp + 0x16], al
test al, al
jne 0x476f60
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x19]
push ecx
lea ecx, [esp + 0x1f]
push ecx
lea ecx, [esp + 0x64]
push ecx
push dword [esp + 0x58]
lea eax, [edx + 0x18]
push dword [esp + 0x68]
push dword [esp + 0xe0]
push esi
push edx
push eax
call fcn.004765e3
test al, al
je 0x476f54
mov al, byte [esp + 0x15]
mov byte [esp + 0x13], al
test al, al
jne 0x476f65
mov dl, byte [esp + 0x17]
test dl, dl
je 0x476a48
test dl, dl
jne 0x476c3f
mov bl, 1
jmp 0x476f65
mov al, byte [esp + 0x14]
mov byte [esp + 0x16], al
jmp 0x476f60
mov ecx, dword [esp + 0x58]
movzx eax, word [ecx + 8]
mov esi, dword [eax + ecx - 8]
mov eax, dword [eax + ecx - 4]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
call fcn.0040b083
mov dword [esp + 0x4c], eax
test eax, eax
je 0x476f65
push ebx
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x28]
push esi
call fcn.004833f7
mov dword [esp + 0x44], ebx
pop ebx
nop
mov ebx, eax
mov dword [esp + 0x88], ecx
mov esi, ecx
mov dword [esp + 0x84], ebx
or esi, dword [esp + 0x40]
mov eax, edx
mov dword [esp + 0x74], eax
jne 0x476daa
test edi, edi
je 0x476daa
cmp eax, dword [esp + 0x6c]
ja 0x476daa
jb 0x476cc5
cmp ebx, dword [esp + 0x5c]
jae 0x476daa
xor ebx, ebx
push ebx
push dword [esp + 0x38]
push dword [esp + 0x24]
push dword [esp + 0x34]
call fcn.004833d3
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0xa4]
cdq
push edx
push eax
push ecx
push esi
call fcn.004833df
mov esi, dword [esp + 0xa4]
mov ecx, edi
push edx
push eax
push ebx
lea eax, [esp + 0x50]
push eax
push esi
push dword [esp + 0x60]
call fcn.0041d691
test al, al
je 0x476da3
cmp dword [esp + 0x44], esi
jne 0x476da3
push dword [esp + 0x1c]
mov eax, dword [esp + 0x80]
xor ecx, ecx
push dword [esp + 0x2c]
or ecx, dword [esp + 0x70]
cdq
or eax, ebx
mov dword [esp + 0x68], ecx
push eax
push ecx
push dword [esp + 0x34]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x28]
push ecx
push dword [esp + 0x50]
push eax
push esi
push ecx
push dword [esp + 0x74]
mov ecx, dword [esp + 0xa4]
call fcn.00475b93
test al, al
je 0x476da3
push dword [esp + 0x64]
lea eax, [esp + 0x18]
push dword [esp + 0x64]
push dword [esp + 0x2c]
push ecx
push dword [esp + 0x48]
push eax
lea eax, [esp + 0x2d]
push eax
sub esp, 0xc
push dword [esp + 0x7c]
push esi
push ecx
push dword [esp + 0x80]
call fcn.00475a29
test al, al
mov al, byte [esp + 0x15]
mov byte [esp + 0x13], al
je 0x476da3
mov al, byte [esp + 0x14]
jmp 0x476dae
mov byte [esp + 0x16], 1
jmp 0x476dba
mov al, 1
xor ebx, ebx
mov byte [esp + 0x16], al
test al, al
je 0x476c2b
cmp dword [esp + 0x80], 5
je 0x476c2b
mov ecx, dword [esp + 0x58]
movzx eax, word [ecx + 8]
or dword [eax + ecx - 8], 0xffffffff
or dword [eax + ecx - 4], 0xffffffff
test edi, edi
je 0x476e95
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x476e95
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x74], eax
ja 0x476e95
jb 0x476e0f
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x84], eax
jae 0x476e95
mov eax, dword [esp + 0x88]
or eax, dword [esp + 0x40]
jne 0x476e95
push ecx
push ecx
mov eax, esp
push ebx
push dword [esp + 0x40]
push dword [esp + 0x2c]
mov dword [eax], 1
push dword [esp + 0x3c]
mov dword [eax + 4], ebx
call fcn.004833d3
push edx
push eax
lea ecx, [esp + 0x220]
call fcn.0041fd7a
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x210]
push dword [eax + 0x810]
push esi
call fcn.00438517
test al, al
je 0x476f60
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
push dword [ecx + 0x810]
mov esi, dword [eax + 0xc]
lea ecx, [esp + 0x114]
push ecx
mov ecx, esi
call dword [0x488254]
mov ecx, dword [esp + 0x44]
call esi
test al, al
je 0x476f60
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x476f27
mov esi, dword [esp + 0xa4]
mov edx, esi
call fcn.00437740
push ebx
lea eax, [esp + 0x48]
push eax
push esi
push ebx
push dword [esp + 0x44]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004833d3
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0xb0]
cdq
push edx
push eax
push ecx
push esi
call fcn.004833df
mov ecx, dword [edi]
push edx
push eax
push dword [esp + 0x40]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
test al, al
je 0x476f60
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x44], eax
jne 0x476f60
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x110]
push ebx
push ebx
push dword [eax + 0x810]
call fcn.0042a125
test al, al
je 0x476f69
mov bl, 1
jmp 0x476f69
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [edi]
push dword [ecx + 0x810]
lea ecx, [esp + 0x114]
push ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x488254]
mov ecx, edi
call esi
test al, al
je 0x476f69
jmp 0x476f07
mov al, byte [esp + 0x15]
mov byte [esp + 0x13], al
jmp 0x476f65
xor ebx, ebx
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x18]
test edi, edi
je 0x476f7f
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 + 0x70]
test edi, edi
je 0x476f99
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 0x476fb3
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 + 0x48]
test eax, eax
je 0x476fc2
mov ecx, eax
call fcn.0040b1df
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x476fd1
mov ecx, eax
call fcn.0040b1df
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x476fe0
mov ecx, eax
call fcn.0040b1df
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x50]
je 0x476ff9
cmp byte [esp + 0x23], 0
je 0x476ff5
mov byte [eax], 1
mov byte [eax + 1], 1
cmp byte [esp + 0x16], 0
je 0x477007
mov byte [eax], 1
jmp 0x477007
xor ebx, ebx
lea ecx, [esp + 0x110]
call fcn.00425135
lea ecx, [esp + 0x90]
call fcn.0042fab5
lea ecx, [esp + 0x210]
call fcn.004383d5
mov ecx, dword [esp + 0x304]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00482bc8
mov esp, ebp
pop ebp
ret 0x1c