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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
mov edi, 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, edi
mov dword [esp + 0x4c], edi
mov dword [eax + 0xc], edx
call fcn.0043ace0
mov eax, dword [edi]
mov edx, dword [eax + 0x180]
mov ecx, edi
call edx
mov dword [esp + 0x34], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x178]
lea ecx, [esp + 0x70]
push ecx
mov ecx, edi
call edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [edi + 0x440]
sub dword [ebp + 0x10], edx
sub dword [ebp + 0x14], eax
xor esi, esi
cmp byte [ecx + 0x384], 0
je 0x46a1b4
mov ecx, dword [edi + 0x388]
cmp ecx, esi
jne 0x46a1d2
mov ecx, dword [edi + 0x388]
cmp ecx, esi
je 0x46a1df
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x46a1df
mov ecx, dword [edi + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x38c]
cmp ecx, esi
je 0x46a20a
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x46a20a
mov ecx, dword [edi + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
call eax
sub dword [ebp + 0x14], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub ebx, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x38c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
cmp ecx, esi
je 0x46a246
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x46a246
mov ecx, dword [edi + 0x38c]
add ebx, dword [ecx + 0x358]
mov dword [esp + 0x48], ebx
cmp dword [edi + 0x358], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
jle 0x46a3c3
mov edx, dword [edi + 0x354]
mov eax, dword [esp + 0x18]
mov esi, dword [edx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x46a3ac
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
jne 0x46a3ac
mov eax, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
push eax
push ebx
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x44], 0
jne 0x46a2bf
inc dword [esp + 0x1c]
jmp 0x46a303
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x44], eax
jge 0x46a2e1
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
cmp dword [esp + 0x44], eax
jle 0x46a303
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [ebx]
mov edx, dword [esi]
add eax, dword [esp + 0x44]
mov edx, dword [edx + 0x74]
add dword [esp + 0x14], eax
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x40]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esp + 0x40], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp dword [esp + 0x40], eax
jge 0x46a374
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
mov dword [esp + 0x40], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jle 0x46a39a
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, eax
mov dword [esp + 0x40], ecx
cmp dword [esp + 0x10], ecx
jg 0x46a3a4
mov dword [esp + 0x10], ecx
inc dword [esp + 0x20]
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [edi + 0x358]
mov dword [esp + 0x18], eax
jl 0x46a266
xor esi, esi
mov eax, dword [esp + 0x20]
dec eax
imul eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x440]
cmp eax, esi
je 0x46a4d8
mov edx, dword [eax + 0x440]
lea ecx, [eax + 0x440]
mov eax, dword [edx + 0x1c]
call eax
mov esi, eax
test esi, esi
je 0x46a4d6
mov edx, dword [esi + 0x350]
mov eax, dword [edx + 0xc]
lea ecx, [esi + 0x350]
call eax
test eax, eax
jle 0x46a4d6
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call edx
cmp dword [eax], 0
jge 0x46a445
mov dword [esp + 0x10], 0
jmp 0x46a46a
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
push ecx
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x38c]
test ecx, ecx
je 0x46a4d6
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x46a4d6
mov ecx, dword [edi + 0x38c]
mov edx, dword [esi]
mov ebx, dword [ecx + 0x360]
mov eax, dword [edx + 0x58]
mov ecx, esi
call eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x64], edx
mov edx, dword [ebp + 8]
push 1
mov dword [esp + 0x6c], ecx
sub edx, ebx
mov ebx, dword [esi]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x5c]
mov ecx, esi
call eax
xor esi, esi
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], esi
jle 0x46a501
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x14]
cdq
idiv ecx
xor ecx, ecx
cmp eax, esi
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x388]
mov edx, dword [esp + 0x4c]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x54], edx
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x46a538
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x46a538
mov eax, dword [edi + 0x388]
sub ebx, dword [eax + 0x360]
mov dword [esp + 0x24], ebx
mov ecx, dword [edi + 0x38c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x30], esi
test ecx, ecx
je 0x46a567
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x46a567
mov ecx, dword [edi + 0x38c]
sub esi, dword [ecx + 0x360]
mov dword [esp + 0x30], esi
mov edx, dword [esp + 0x14]
xor eax, eax
cmp dword [edi + 0x358], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
jle 0x46a7bf
mov eax, dword [edi + 0x354]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x46a7aa
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
je 0x46a5cc
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x204]
push eax
mov ecx, edi
call edx
jmp 0x46a7aa
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call edx
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x14c]
push edi
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, esi
mov dword [esp + 0x60], edi
call edx
cmp dword [esp + 0x44], 0
jne 0x46a67a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
cmp eax, dword [esp + 0x1c]
jne 0x46a634
mov eax, edi
sub eax, dword [esp + 0x6c]
mov edx, 0
sub eax, dword [esp + 0x20]
sets dl
dec edx
and edx, eax
mov dword [esp + 0x44], edx
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x44], eax
jge 0x46a656
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
cmp dword [esp + 0x44], eax
jle 0x46a6c6
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
jmp 0x46a6c6
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x44], eax
jge 0x46a69c
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jle 0x46a6c2
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x44], ecx
sub dword [esp + 0x20], ecx
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
cmp ecx, eax
jg 0x46a6e2
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x98]
mov ecx, esi
call edx
cmp dword [esp + 0x40], eax
jge 0x46a704
mov eax, dword [esi]
mov edx, dword [eax + 0x98]
mov ecx, esi
call edx
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
cmp dword [esp + 0x40], eax
jle 0x46a726
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
add edx, ebx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x40]
lea edi, [eax + ecx]
add edx, eax
mov eax, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x6c]
add eax, ecx
add eax, dword [esp + 0x64]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edi
mov edi, dword [esp + 0x98]
mov dword [ecx + 4], edi
add eax, ebx
mov ebx, dword [esi]
mov dword [ecx + 8], edx
mov edx, dword [ebx + 0x5c]
mov dword [ecx + 0xc], eax
mov ecx, esi
call edx
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x24]
lea eax, [edx + esi]
add eax, ecx
mov ecx, dword [esp + 0x34]
add dword [esp + 0x18], eax
lea edi, [eax + ecx]
add edx, esi
add ebx, edi
mov edi, dword [esp + 0x38]
add edx, ecx
sub dword [esp + 0x54], edx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [edi + 0x358]
mov dword [esp + 0x14], eax
jl 0x46a585
mov edx, dword [esp + 0x3c]
mov ecx, dword [edi + 0x38c]
add dword [esp + 0x18], edx
test ecx, ecx
je 0x46a88f
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
cmp esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
jle 0x46a84a
call edx
mov ecx, dword [edi + 0x38c]
test al, al
je 0x46a809
mov eax, esi
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
call fcn.00473e80
jmp 0x46a88f
mov eax, dword [ecx]
mov edx, dword [eax + 0x104]
push 1
call edx
mov ecx, dword [edi + 0x38c]
mov eax, esi
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
call fcn.00473e80
mov ecx, dword [edi + 0x38c]
xor eax, eax
call fcn.00473f30
mov ecx, dword [edi + 0x38c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x90]
call edx
sub dword [ebp + 0x14], eax
jmp 0x46a88f
call edx
test al, al
je 0x46a88f
mov ecx, dword [edi + 0x38c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x104]
push 0
call edx
mov ecx, dword [edi + 0x38c]
xor eax, eax
call fcn.00473e80
mov ecx, dword [edi + 0x38c]
xor eax, eax
call fcn.00473f30
mov ecx, dword [edi + 0x38c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x90]
call edx
add dword [ebp + 0x14], eax
mov eax, dword [edi + 0x440]
lea ecx, [eax + 0x440]
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
test eax, eax
jne 0x46a8fa
mov eax, dword [edi + 0x358]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x46a8fa
mov eax, dword [edi + 0x354]
mov esi, dword [eax]
mov edx, dword [esi]
mov eax, dword [edx + 0x88]
mov ecx, esi
call eax
mov ecx, eax
test ecx, ecx
jle 0x46a8fa
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov ebx, eax
test ebx, ebx
jle 0x46a8fa
mov edx, dword [esi]
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov ecx, eax
mov eax, dword [esp + 0x3c]
dec eax
cdq
idiv ebx
inc eax
imul ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 0x208]
push eax
push ecx
mov ecx, dword [ebp + 8]
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, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14