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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [fcn.0049f1f8]
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x4c]
xor esi, esi
cmp eax, esi
mov byte [edi + 0x48], 0
je 0x46f279
push 0x78
push eax
call dword [fcn.0049f1dc]
test eax, eax
jne 0x46f248
mov eax, dword [edi + 0x4c]
push eax
jmp 0x46f274
mov ecx, dword [0x4c7aac]
cmp ecx, esi
je 0x46f25c
push 0x4a9928
call fcn.004500d9
mov ecx, dword [edi + 0x4c]
push 0xffffffffffffffff
push ecx
call dword [fcn.0049f214]
push 0xa
call dword [fcn.0049f228]
mov edx, dword [edi + 0x4c]
push edx
call ebx
mov dword [edi + 0x4c], esi
lea ebp, [edi + 0x60]
push ebp
mov dword [esp + 0x20], ebp
call dword [fcn.0049f1e8]
cmp byte [edi + 8], 0
jne 0x46f29c
push ebp
call dword [fcn.0049f1e4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0x78]
push eax
mov byte [edi + 8], 0
mov byte [edi + 0xe4], 0
mov byte [edi + 0xe5], 0
mov byte [edi + 0x18], 0
mov dword [edi + 0x50], esi
mov dword [edi + 0xc], 0xffffffff
mov byte [edi + 0x10], 0xff
mov dword [edi + 0xac], esi
call ebx
mov dword [edi + 0x78], esi
mov ebx, dword [edi + 0x98]
cmp ebx, dword [edi + 0x9c]
lea esi, [edi + 0x94]
jbe 0x46f2e9
call fcn.00476807
nop
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x46f2f6
call fcn.00476807
cmp esi, esi
je 0x46f2ff
call fcn.00476807
cmp ebx, ebp
je 0x46f334
cmp ebx, dword [esi + 8]
jb 0x46f30d
call fcn.00476807
mov ebp, dword [ebx]
test ebp, ebp
je 0x46f325
mov ecx, dword [ebp]
push ecx
call fcn.004761f9
push ebp
call fcn.00475c61
add esp, 8
cmp ebx, dword [esi + 8]
jb 0x46f32f
call fcn.00476807
add ebx, 4
jmp 0x46f2e9
mov ebp, dword [esi + 8]
cmp dword [esi + 4], ebp
jbe 0x46f341
call fcn.00476807
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x46f34e
call fcn.00476807
cmp ebx, ebp
je 0x46f37f
mov eax, dword [esi + 8]
sub eax, ebp
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + ebx]
mov dword [esp + 0x10], edx
jle 0x46f378
push ecx
push ebp
push ecx
push ebx
call fcn.00475ce1
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ebx, dword [edi + 0x34]
mov ecx, dword [edi + 0x38]
lea esi, [edi + 0x28]
add ecx, ebx
cmp ebx, ecx
jbe 0x46f393
call fcn.00476807
mov dword [esp + 0x18], ebx
mov edi, edi
mov eax, dword [esi + 0xc]
mov ebp, dword [esi + 0x10]
add ebp, eax
cmp eax, ebp
jbe 0x46f3aa
call fcn.00476807
cmp esi, esi
je 0x46f3b3
call fcn.00476807
cmp ebx, ebp
je 0x46f413
mov edx, dword [esi + 0xc]
add edx, dword [esi + 0x10]
mov ebp, ebx
shr ebp, 2
and ebx, 3
cmp dword [esp + 0x18], edx
jb 0x46f3d0
call fcn.00476807
mov eax, dword [esi + 8]
cmp eax, ebp
ja 0x46f3d9
sub ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebp*4]
mov ebx, dword [ecx + ebx*4]
test ebx, ebx
je 0x46f3f7
mov edx, dword [ebx]
push edx
call fcn.004761f9
push ebx
call fcn.00475c61
add esp, 8
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
cmp dword [esp + 0x18], eax
jb 0x46f408
call fcn.00476807
add dword [esp + 0x18], 1
mov ebx, dword [esp + 0x18]
jmp 0x46f399
mov ecx, esi
call fcn.00429819
mov ecx, dword [edi + 0x40]
mov ebx, dword [ecx]
lea esi, [edi + 0x3c]
mov edi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
test edi, edi
mov ebp, dword [esi + 4]
je 0x46f437
cmp edi, esi
je 0x46f43c
call fcn.00476807
cmp ebx, ebp
je 0x46f47e
test edi, edi
jne 0x46f449
call fcn.00476807
cmp ebx, dword [edi + 4]
jne 0x46f453
call fcn.00476807
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x46f46b
mov edx, dword [edi]
push edx
call fcn.004761f9
push edi
call fcn.00475c61
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0046aa39
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x46f42c
mov eax, dword [esi + 4]
mov ebx, dword [eax + 4]
cmp byte [ebx + 0x11], 0
mov edi, ebx
jne 0x46f4aa
mov ecx, dword [edi + 8]
push ecx
mov ecx, esi
call fcn.0046f1a9
mov edi, dword [edi]
push ebx
call fcn.00475c61
add esp, 4
cmp byte [edi + 0x11], 0
mov ebx, edi
je 0x46f48c
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
push edx
mov dword [esi + 8], esi
call dword [fcn.0049f1e4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret