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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4f4214]
xor eax, esp
mov dword [esp + 0x50], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.0045b170
mov edi, dword [esi + 0x154]
mov eax, dword [esi + 0x158]
mov edx, dword [esi + 0x15c]
mov ecx, dword [esi + 0x160]
add edi, dword [esi + 0x4b0]
add eax, dword [esi + 0x4b4]
sub edx, dword [esi + 0x4b8]
sub ecx, dword [esi + 0x4bc]
cmp dword [esi + 0x4a8], 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
jne 0x46cc58
mov ebx, dword [esi]
push 0
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [ebx + 0x1ac]
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x4c8]
test ecx, ecx
je 0x46cc80
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x46cc80
mov ecx, dword [esi + 0x4c8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
je 0x46cca8
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x46cca8
mov ecx, dword [esi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
sub dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4cc]
sub edi, dword [ebp + 8]
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x46ccdc
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x46ccdc
mov ecx, dword [esi + 0x4cc]
add edi, dword [ecx + 0x4a4]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x4a8], ecx
jle 0x46cddf
mov edx, dword [esi + 0x4a4]
mov eax, dword [esp + 0x1c]
mov ebx, dword [edx + eax*4]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc8]
mov ecx, ebx
call eax
test al, al
je 0x46cdc2
mov edx, dword [ebx]
mov eax, dword [edx + 0xf4]
mov ecx, ebx
call eax
test al, al
jne 0x46cdc2
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x114]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0x20], 0
jne 0x46cd53
inc dword [esp + 0x28]
jmp 0x46cd8b
mov eax, dword [ebx]
mov edx, dword [eax + 0x68]
mov ecx, ebx
call edx
cmp dword [esp + 0x20], eax
jge 0x46cd6f
mov eax, dword [ebx]
mov edx, dword [eax + 0x68]
mov ecx, ebx
call edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
mov ecx, ebx
call edx
cmp dword [esp + 0x20], eax
jle 0x46cd8b
mov eax, dword [ebx]
mov edx, dword [eax + 0x70]
mov ecx, ebx
call edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call edx
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
add eax, dword [ecx]
add eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
inc dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x4a8]
jl 0x46ccfa
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x4c0]
dec eax
imul edx, eax
add dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
cmp ecx, eax
jle 0x46ce1a
mov eax, edi
sub eax, dword [esp + 0x14]
cdq
idiv ecx
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x4cc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x1c], ebx
cmp ecx, edi
je 0x46ce53
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x46ce53
mov ecx, dword [esi + 0x4cc]
sub ebx, dword [ecx + 0x4a8]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x4a8], edi
jle 0x46d0a9
mov eax, dword [esi + 0x4a4]
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + ecx*4]
mov edx, dword [edi]
mov eax, dword [edx + 0xc8]
mov ecx, edi
call eax
test al, al
je 0x46d094
mov edx, dword [edi]
mov eax, dword [edx + 0xf4]
mov ecx, edi
call eax
test al, al
je 0x46ceb6
mov edx, dword [esi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x1a8]
push eax
mov ecx, esi
call edx
jmp 0x46d094
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi]
mov edx, dword [edx + 0x114]
push ecx
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0xc], 0
jne 0x46cf5a
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], ecx
cmp eax, dword [esp + 0x28]
jne 0x46cf20
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x44]
mov edx, 0
sub eax, dword [esp + 0x18]
sets dl
dec edx
and edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
cmp dword [esp + 0xc], eax
jge 0x46cf3c
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
cmp dword [esp + 0xc], eax
jle 0x46cf9a
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
jmp 0x46cf9a
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
cmp dword [esp + 0xc], eax
jge 0x46cf76
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
mov ecx, edi
call edx
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jle 0x46cf96
mov eax, dword [edi]
mov edx, dword [eax + 0x70]
mov ecx, edi
call edx
mov ecx, eax
mov dword [esp + 0xc], ecx
sub dword [esp + 0x18], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x46cfbf
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x46cfc9
mov dword [esp + 0x10], 0
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jge 0x46cfe5
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
cmp dword [esp + 0x10], eax
jle 0x46d007
mov eax, dword [edi]
mov edx, dword [eax + 0x80]
mov ecx, edi
call edx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + ebx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
add eax, dword [ebp + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0xc]
mov edx, dword [edx + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x40]
add ecx, dword [esp + 0x10]
add eax, ebx
add ecx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x58], ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [esp + 0x60]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 0xc], eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x4c0]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
lea edi, [eax + ecx]
add edi, dword [esp + 0xc]
add eax, ecx
add eax, dword [esp + 0xc]
add edi, edx
add ebx, edi
mov edi, dword [esp + 0xc]
add edi, ecx
add edi, edx
add dword [esp + 0x30], edi
sub dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esi + 0x4a8]
jl 0x46ce6f
mov eax, dword [esi + 0x4c0]
imul eax, dword [esp + 0x38]
add eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x1ac]
push 0
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret 0x10