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

Disassembly:
push 0xffffffffffffffff
push 0x4b0a40
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x98]
xor ebx, ebx
mov dword [eax], ebx
cmp edi, ebx
je 0x476ef3
mov ebp, dword [esp + 0x88]
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
push ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
call fcn.00475360
add esp, 8
test al, al
je 0x476ef3
cmp edi, dword [esp + 0x58]
jb 0x476ef3
mov eax, dword [esp + 0x5c]
test al, al
je 0x476b86
test edi, 1
je 0x476ef3
test ah, ah
je 0x476b98
mov edx, edi
and edx, 1
cmp dl, 1
je 0x476ef3
push edi
push ebp
call fcn.00475590
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x476ef3
mov ecx, dword [esp + 0x90]
cmp ecx, ebx
je 0x476bc7
xor edx, edx
mov eax, ecx
div esi
test edx, edx
jne 0x476ef3
mov esi, ecx
mov eax, dword [ebp]
push eax
call fcn.00462d30
add esp, 4
test al, al
je 0x476bf1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, ecx
ja 0x476ef3
cmp eax, ebx
jne 0x476bf1
cmp ecx, ebx
ja 0x476ef3
mov ecx, esi
imul ecx, edi
lea eax, [ecx*4 + 0x10]
push eax
lea ecx, [esp + 0x20]
call fcn.00408640
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x80], ebx
cmp ebp, ebx
je 0x476eea
mov dword [ebp + 4], edi
xor edi, edi
mov dword [ebp], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
xor ecx, ecx
mov byte [esp + 0x80], 3
mov dword [esp + 0x14], ecx
cmp esi, edi
jbe 0x476ded
jmp 0x476c70
mov dword [esp + 0x8c], edi
cmp dword [ebp + 4], edi
jbe 0x476ddf
mov eax, dword [ebp + 4]
mov esi, eax
imul esi, ecx
lea edx, [esp + 0x44]
push edx
push edi
push ecx
mov ecx, dword [esp + 0x94]
push eax
mov eax, dword [ebp]
push eax
add esi, edi
push ecx
mov dword [esp + 0x30], esi
call fcn.00476290
mov ebx, eax
add esp, 0x18
cmp ebx, 0xffefff01
je 0x476f09
cmp ebx, 0xffefff02
je 0x476f09
cmp ebx, 0xffefff00
jae 0x476ce0
mov edx, dword [esp + 0x98]
mov ecx, dword [edx]
lea eax, [ebx + 1]
cmp ecx, eax
jbe 0x476cde
mov eax, ecx
mov dword [edx], eax
cmp ebx, 0xfff00000
jb 0x476dc0
mov eax, ebx
and eax, 0xffff
jne 0x476dc0
mov ebp, dword [esp + 0x48]
test ebp, ebp
je 0x476eb7
mov esi, dword [esp + 0x3c]
xor edi, edi
test esi, esi
jbe 0x476d85
nop
mov edx, dword [esp + 0x38]
cmp dword [edx + edi*8 + 4], ebp
jne 0x476d80
mov edx, dword [edx + edi*8]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
lea eax, [ebp*8]
lea esi, [esi + edx*8]
cmp eax, 4
jb 0x476d48
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x476d7c
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x476d34
test eax, eax
je 0x476eb0
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x476d7c
cmp eax, 1
jbe 0x476eb0
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x476d7c
cmp eax, 2
jbe 0x476eb0
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x476eb0
mov esi, dword [esp + 0x3c]
inc edi
cmp edi, esi
jb 0x476d10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
push ebp
push eax
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
call fcn.00475b50
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x3c]
add ebx, esi
call fcn.0044b140
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
inc edi
mov dword [ebp + esi*4 + 0x10], ebx
mov dword [esp + 0x8c], edi
cmp edi, dword [ebp + 4]
jb 0x476c80
mov ebx, dword [esp + 0x3c]
xor edi, edi
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebp]
jb 0x476c70
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x94]
add eax, ebx
lea ecx, [edi + eax*8]
push ecx
mov ecx, esi
call fcn.004080c0
cmp dword [esi], 0
je 0x476eb7
push edi
mov dword [ebp + 8], ebx
mov edx, dword [esi]
push ebp
push edx
call fcn.0049c850
add esp, 0xc
test ebx, ebx
jbe 0x476e40
mov ecx, dword [esp + 0x38]
mov edx, dword [esi]
lea eax, [ebx*8]
push eax
push ecx
add edx, edi
push edx
call fcn.0049c850
add esp, 0xc
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
test eax, eax
jbe 0x476e62
add eax, eax
add eax, eax
add eax, eax
push eax
lea ecx, [edi + ebx*8]
add ecx, dword [esi]
push ebp
push ecx
call fcn.0049c850
add esp, 0xc
mov eax, dword [esp + 0x44]
test eax, eax
je 0x476e73
push eax
call fcn.0049ba00
add esp, 4
test ebp, ebp
je 0x476e80
push ebp
call fcn.0049ba00
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x476e91
push eax
call fcn.0049ba00
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00417bf0
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
add ebx, edi
jmp 0x476db1
mov eax, dword [esp + 0x44]
test eax, eax
je 0x476ec8
push eax
call fcn.0049ba00
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x476ed9
push eax
call fcn.0049ba00
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x476eea
push eax
call fcn.0049ba00
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.00417bf0
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov eax, dword [esp + 0x44]
test eax, eax
je 0x476f1a
push eax
call fcn.0049ba00
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x476f2b
push eax
call fcn.0049ba00
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x476f3c
push eax
call fcn.0049ba00
add esp, 4
push ebp
call fcn.0049ba00
add esp, 4
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret