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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
mov eax, dword [ebp]
push esi
push edi
push 0x4c0640
push eax
call dword [0x4a2434]
mov dword [esp + 0x18], eax
test eax, eax
je 0x46bbb4
mov ecx, dword [ebp]
push 0x4c0640
push ecx
call dword [0x4a243c]
movzx edx, byte [ebp + 7]
mov esi, dword [esp + 0x60]
xor ebx, ebx
mov edi, 0x80000000
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], ebx
jbe 0x46b9c7
mov dword [esp + 0x64], ebx
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x64]
movzx edx, byte [eax + 6]
cmp edx, dword [esp + 0x1c]
jne 0x46b9bc
mov edx, dword [eax]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [0x4a2644]
mov eax, dword [esp + 0x50]
cmp edi, eax
jge 0x46b9ae
mov edi, eax
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x14], eax
jge 0x46b9bc
mov dword [esp + 0x14], eax
add dword [esp + 0x64], 0x14
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x46b985
mov ecx, dword [ebp]
xor ebx, ebx
cmp edi, 0x80000000
setne bl
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [0x4a2644]
mov al, byte [esp + 0x18]
test al, 1
je 0x46b9fc
test ebx, ebx
je 0x46b9fc
mov edx, dword [esi + 0x78]
lea ecx, [edx + edi + 4]
mov dword [esp + 0x30], ecx
test al, 2
je 0x46ba13
test ebx, ebx
je 0x46ba13
mov edx, dword [esi + 0x7c]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 4]
push 2
lea edx, [esp + 0x2c]
push edx
push eax
push 0
call dword [0x4a2440]
mov ecx, dword [ebp]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
sub edi, dword [esp + 0x28]
sub esi, dword [esp + 0x2c]
push 0xfffffffffffffff0
push ecx
call dword [0x4a2600]
mov ebx, eax
and eax, 0x80
mov dword [esp + 0x20], eax
neg eax
sbb eax, eax
add eax, 2
test dword [esp + 0x18], eax
setne al
mov byte [esp + 0x64], al
test al, al
je 0x46ba81
test bl, 2
jne 0x46ba81
mov eax, dword [ebp]
push 0
push 0
push 0x132c
push eax
call dword [0x4a25c0]
mov dword [esp + 0x14], eax
jmp 0x46ba89
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp]
push 1
push esi
push edi
push ecx
push edx
push eax
call dword [0x4a2640]
cmp byte [esp + 0x64], 0
je 0x46bb51
mov ecx, dword [ebp]
push 0
push 0
push 0x132c
push ecx
call dword [0x4a25c0]
mov dword [esp + 0x64], eax
cmp dword [esp + 0x14], eax
je 0x46bb51
mov eax, dword [ebp]
lea edx, [esp + 0x38]
push edx
push 0
push 0x130a
push eax
call dword [0x4a25c0]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
and ebx, 0x100
neg ebx
sbb ebx, ebx
and ebx, 3
cmp dword [esp + 0x20], 0
je 0x46bb21
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add edi, ebx
lea eax, [edx + edi]
mov dword [esp + 0x30], eax
jmp 0x46bb41
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x14]
imul ebx, eax
add esi, ebx
lea eax, [ecx + esi]
mov dword [esp + 0x34], eax
push 1
push esi
push edi
push ecx
mov ecx, dword [ebp]
push edx
push ecx
call dword [0x4a2640]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [eax + 0x18]
movzx edx, byte [ecx + edx*4 - 0xe]
cmp edx, dword [esp + 0x1c]
je 0x46bb70
cmp dword [esp + 0x24], 0
jne 0x46bbb4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x80], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], edi
mov dword [eax + 0x8c], esi
cmp dword [eax + 0x90], ecx
jge 0x46bba2
mov dword [eax + 0x90], ecx
mov ecx, dword [esp + 0x34]
cmp dword [eax + 0x94], ecx
jge 0x46bbb4
mov dword [eax + 0x94], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8