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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov ebx, dword [esi + 4]
test ebx, ebx
lea ebp, [ebx*4 - 4]
je 0x49f0ef
lea esi, [esi]
mov dword [esp + 4], 0x20
mov eax, dword [esi]
sub ebx, 1
mov eax, dword [eax + ebp]
sub ebp, 4
mov dword [esp], eax
call fcn.006e98a0
test ebx, ebx
jne 0x49f0d0
mov dword [esi + 4], 0
mov edx, dword [edi + 4]
test edx, edx
je 0x49f310
xor ebx, ebx
jmp 0x49f130
mov edx, dword [esi]
mov dword [edx + eax*4], ebx
add eax, 1
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
add ebx, 1
test eax, eax
je 0x49f127
mov dword [esp], eax
call fcn.006e9860
cmp ebx, dword [edi + 4]
jae 0x49f310
mov dword [esp + 4], 0x2e
mov eax, dword [edi]
lea ebp, [ebx + ebx]
add eax, ebp
mov dword [esp], eax
call fcn.004706a0
test eax, eax
js 0x49f2b5
add eax, ebx
mov dword [esp + 0x14], eax
js 0x49f2b5
add ebp, dword [edi]
sub eax, ebx
lea ecx, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.004724f0
sub esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x49f2f0
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x40], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov byte [esp + 0x41], 1
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0
mov byte [esp + 0x44], 0
mov dword [esp], eax
mov byte [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], 1
mov byte [esp + 0x36], 1
mov byte [esp + 0x37], 1
mov byte [esp + 0x3e], 1
mov byte [esp + 0x3f], 1
mov byte [esp + 0x3d], 1
call fcn.0049ed80
test al, al
je 0x49f2f0
mov dword [esp], 0x20
call fcn.006e98d0
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x49f105
mov edx, eax
shr edx, 2
lea ebp, [eax + edx + 1]
cmp ebp, 0x1fffffff
ja 0x49f31d
lea eax, [ebp*4]
mov dword [esp], eax
call fcn.006e98b0
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x49f2c1
test ecx, ecx
je 0x49f2ab
mov dword [esp], ecx
mov dword [esp + 0x18], edx
call fcn.006e9860
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov dword [esi], edx
mov dword [esi + 8], ebp
jmp 0x49f107
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x49f15b
shl eax, 2
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x49f298
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49f300
mov dword [esp], eax
call fcn.006e9860
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.006ea1c0
mov edx, dword [esp + 0x24]
mov ebx, eax
test edx, edx
je 0x49f334
mov dword [esp], edx
call fcn.006e9860
mov dword [esp], ebx
call fcn.005d5ce0
lea esi, [esi]