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

Disassembly:
sub esp, 0x3c
mov ecx, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
sub eax, dword [ebp]
push esi
mov esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
push edi
mov edi, dword [ebx + 8]
sub edi, dword [ebx]
lea edx, [ebx + 0xc]
dec ecx
mov dword [esp + 0x18], eax
mov eax, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], ecx
je 0x46f7d0
lea ebx, [ebx]
mov ecx, dword [edx + 0x78]
sub ecx, dword [edx + 0x70]
add edx, 0x7c
cmp eax, ecx
jge 0x46f7bf
mov eax, ecx
mov ecx, dword [edx]
sub ecx, dword [edx - 8]
cmp eax, ecx
jge 0x46f7ca
mov eax, ecx
dec dword [esp + 0x54]
jne 0x46f7b0
add eax, eax
add eax, eax
push 0x10
push eax
call fcn.0049dfef
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x46fa22
jmp 0x46f810
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
add ebx, 0x7c
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], ecx
mov ecx, esi
mov dword [esp + 0x34], ecx
mov ebp, dword [ebx + 8]
sub ebp, dword [ebx]
mov esi, dword [ebx + 0xc]
sub esi, dword [ebx + 4]
mov dword [esp + 0x14], ebp
sub ebp, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebp
mov ebx, dword [ebx]
and ebx, 0x80000001
mov dword [esp + 0x1c], esi
jns 0x46f850
dec ebx
or ebx, 0xfffffffe
inc ebx
mov dword [esp + 0x48], ebx
test esi, esi
jle 0x46f91b
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], esi
jmp 0x46f87c
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
lea esi, [eax + ebx*4]
mov ecx, edi
test edi, edi
je 0x46f8ad
lea esp, [esp]
mov eax, dword [edx]
mov dword [esi], eax
add edx, 4
add esi, 8
dec ecx
jne 0x46f890
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
lea ecx, [ebx*4]
sub eax, ecx
add eax, 4
lea edx, [esi + edi*4]
mov ecx, ebp
test ebp, ebp
je 0x46f8d3
mov edi, dword [edx]
mov dword [eax], edi
add edx, 4
add eax, 8
dec ecx
jne 0x46f8c6
lea edx, [esp + 0x3c]
push edx
call dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x44]
push eax
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esp + 0x28]
add eax, eax
add eax, eax
add esi, eax
mov eax, dword [esp + 0x4c]
add esp, 0x10
dec dword [esp + 0x20]
mov dword [esp + 0x10], esi
jne 0x46f870
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov ebp, esi
mov esi, dword [esp + 0x24]
sub ebp, ecx
mov dword [esp + 0x30], ebp
mov ebx, dword [esi + 4]
and ebx, 0x80000001
jns 0x46f937
dec ebx
or ebx, 0xfffffffe
inc ebx
mov esi, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
test esi, esi
jle 0x46fa18
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], esi
jmp 0x46f96c
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
lea esi, [edx + ebx*4]
mov eax, ecx
test ecx, ecx
je 0x46f99d
mov ecx, dword [esp + 0x18]
add ecx, ecx
add ecx, ecx
mov edx, dword [edi]
mov dword [esi], edx
add esi, 8
add edi, ecx
dec eax
jne 0x46f981
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
imul ecx, edi
lea ecx, [eax + ecx*4]
lea eax, [ebx*4]
sub edx, eax
add edx, 4
mov eax, ebp
test ebp, ebp
je 0x46f9d0
lea esi, [edi*4]
mov ebx, dword [ecx]
mov dword [edx], ebx
add edx, 8
add ecx, esi
dec eax
jne 0x46f9c4
lea ecx, [esp + 0x2c]
push ecx
call dword [esp + 0x5c]
mov esi, dword [esp + 0x20]
add esp, 4
xor eax, eax
test esi, esi
jle 0x46fa01
mov ecx, dword [esp + 0x10]
lea edx, [edi*4]
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + eax*4]
mov dword [ecx], edi
inc eax
add ecx, edx
cmp eax, esi
jl 0x46f9f1
add dword [esp + 0x10], 4
dec dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jne 0x46f960
mov eax, dword [esp + 0x3c]
dec dword [esp + 0x54]
jne 0x46f800
push eax
call fcn.0049e039
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret