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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
call fcn.0042c784
cmp eax, 2
je 0x42f040
cmp eax, 3
je 0x42f1fc
add esp, 0xcc
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [0x504084]
mov dword [ebp - 0x90], eax
mov eax, dword [0x4fef2c]
test eax, eax
je 0x42f033
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x42f033
xor ecx, ecx
xor esi, esi
nop
mov dword [eax + 0x6c], esi
add esi, 8
inc ecx
mov eax, dword [eax]
test eax, eax
jne 0x42f060
test esi, esi
je 0x42f033
mov edx, dword [ebp - 0x90]
sub edx, 0xffffff80
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x7c]
call fcn.0042ce04
mov dword [esp], esi
call fcn.00488278
mov dword [ebp - 0x8c], eax
mov edx, 0x4aa588
mov eax, ebx
call fcn.0042e968
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp - 0x8c]
mov dword [eax + 0x6c], edi
xor eax, eax
mov ecx, esi
rep stosb byte es:[edi], al
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x9c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00431f74
mov ebx, dword [0x4fef2c]
test ebx, ebx
je 0x42f807
mov dword [ebp - 0xa0], esi
mov edi, dword [ebp - 0x9c]
jmp 0x42f0f6
mov ebx, dword [ebx]
test ebx, ebx
je 0x42f801
mov esi, dword [ebx + 0x6c]
mov dword [ebx + 0x44], edi
mov edx, dword [ebp - 0x90]
mov dword [ebx + 0x40], edx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x42f0ec
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call fcn.0041bf70
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0041bf70
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x42f86d
mov dword [esp], eax
call fcn.0041bf70
mov ecx, dword [ebp - 0x98]
sub eax, ecx
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x42f1f0
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x49e680
mov dword [esp], 0x4a9eec
mov ecx, 0x4a9eec
call fcn.0042e9c8
mov edx, eax
mov eax, dword [ebx + 0x40]
mov dword [esp], edx
mov ecx, 2
mov edx, esi
call fcn.0042e894
mov eax, dword [ebp - 0xa4]
sub eax, dword [ebp - 0x98]
shl eax, 8
movzx edx, byte [ebp - 0x94]
or edx, eax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x42f1bd
or edx, 0x40000000
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x42f1ca
or edx, 0x80000000
mov eax, dword [ebx + 0x40]
mov eax, dword [eax + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x8c]
lea ecx, [eax + esi + 4]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, dword [ebp - 0x94]
call dword [edx + 0x30]
mov dword [ebx + 4], 1
jmp 0x42f0ec
mov edx, dword [0x504084]
mov dword [ebp - 0xb0], edx
mov edi, dword [0x4fef2c]
test edi, edi
je 0x42f033
mov edx, dword [edi + 4]
test edx, edx
jne 0x42f033
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
lea esi, [esi]
mov ecx, dword [ebp - 0xa8]
mov dword [edi + 0x6c], ecx
mov eax, edi
call fcn.0042e818
mov dword [ebp - 0x90], eax
shl eax, 2
mov dword [ebp - 0x98], eax
mov dword [esp], eax
call fcn.00488278
mov dword [ebp - 0xa4], eax
mov ebx, dword [ebp - 0x98]
mov dword [esp], ebx
call fcn.00488278
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x90]
lea eax, [edx*4 + 4]
mov dword [esp], eax
call fcn.00488278
mov esi, eax
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call fcn.0041bf70
mov edx, eax
mov ebx, dword [edi + 0x80]
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x9c]
mov dword [ecx], eax
mov dword [esi], 0
mov eax, dword [edi + 0x78]
test eax, eax
je 0x42f784
mov dword [ebp - 0x8c], 1
xor ecx, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0xa0], esi
mov esi, ecx
mov edi, edx
nop
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0041bf70
mov edx, eax
sub edx, edi
cmp edx, 0xff
jbe 0x42f31c
mov edi, dword [ebp - 0x8c]
lea edx, [edi*4]
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 0x9c]
mov dword [edi + edx], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + edx], esi
inc dword [ebp - 0x8c]
mov edi, eax
inc esi
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x78]
add ebx, 0x14
cmp esi, eax
jb 0x42f2dc
mov edi, edx
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x98]
mov dword [esi + ecx], eax
mov ebx, dword [ebp - 0x90]
lea eax, [ebx + ebx*4]
add dword [edi + 0x4c], eax
xor eax, eax
cmp ebx, 1
setne al
mov dword [ebp - 0x94], eax
mov ecx, dword [esi + 4]
mov dword [esp], eax
mov edx, dword [esi]
mov eax, edi
call fcn.0042c544
lea edx, [eax + 7]
and edx, 0xfffffff8
lea eax, [ebx + ebx*2]
lea eax, [edx + eax*4]
mov dword [ebp - 0x8c], eax
dec ebx
jle 0x42f78b
mov ebx, 1
lea esi, [esi]
mov ecx, dword [esi + ebx*4 + 4]
mov edx, dword [esi + ebx*4]
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
mov eax, edi
call fcn.0042c544
add eax, 7
and eax, 0xfffffff8
add dword [ebp - 0x8c], eax
inc ebx
cmp dword [ebp - 0x90], ebx
jg 0x42f388
mov eax, dword [edi + 0x58]
mov edx, dword [ebp - 0xa4]
mov dword [edx], eax
mov ebx, 1
lea ecx, [edi + 0x54]
mov dword [ebp - 0x94], ecx
lea eax, [edi + 8]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa0], edi
mov edi, esi
mov esi, edx
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
call fcn.0042cf48
mov dword [esi + ebx*4], eax
inc ebx
cmp dword [ebp - 0x90], ebx
jg 0x42f3e0
mov esi, edi
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
mov dword [edi + 0x5c], edx
mov ecx, dword [ebp - 0x9c]
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], esi
mov ebx, dword [ebp - 0x8c]
mov dword [edi + 0x68], ebx
add dword [ebp - 0xa8], ebx
mov eax, dword [edi + 0x4c]
add dword [ebp - 0xac], eax
mov edi, dword [edi]
test edi, edi
jne 0x42f238
mov ebx, dword [ebp - 0xa8]
test ebx, ebx
je 0x42f033
mov edx, dword [ebp - 0xb0]
sub edx, 0xffffff80
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ecx + 0x7c]
mov ecx, dword [ebp - 0xac]
call fcn.0042ce04
mov ebx, dword [ebp - 0xa8]
mov dword [esp], ebx
call fcn.00488278
mov dword [ebp - 0x8c], eax
mov edx, 0x4aa952
mov eax, dword [ebp - 0xb0]
call fcn.0042e968
mov dword [ebp - 0xac], eax
mov edi, dword [ebp - 0x8c]
mov dword [eax + 0x6c], edi
xor eax, eax
mov ecx, dword [ebp - 0xa8]
rep stosb byte es:[edi], al
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0xac]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.00431f74
mov ebx, dword [0x4fef2c]
test ebx, ebx
jne 0x42f4da
jmp 0x42f79b
mov ebx, dword [ebx]
test ebx, ebx
je 0x42f79b
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebp - 0xac]
mov dword [ebx + 0x44], ecx
mov edi, dword [ebp - 0xb0]
mov dword [ebx + 0x40], edi
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x42f4d0
mov dword [ebx + 4], 1
mov dword [ebp - 0x1c], eax
mov eax, ebx
call fcn.0042e818
mov dword [ebp - 0x90], eax
mov edi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0xa4], eax
mov edx, dword [ebx + 0x64]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0x90], 1
jle 0x42f87c
mov esi, 1
mov dword [ebp - 0xa0], edi
nop
mov ecx, dword [ebp - 0xa0]
mov ecx, dword [ecx + esi*4]
mov dword [ebp - 0x94], ecx
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x98], edi
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x9c], eax
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x42f66f
mov dword [esp + 8], esi
mov dword [esp + 4], 0x4aa944
lea edx, [ebp - 0x80]
mov dword [esp], edx
call fcn.0042cf24
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x40]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x44]
mov dword [esp + 4], edx
lea edx, [ebp - 0x80]
mov dword [esp], edx
mov edx, str..xdata_fct
call fcn.0042e9c8
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x49e680
mov dword [esp], 0x4a9eec
mov ecx, 0x4a9eec
mov edx, dword [ebp - 0x9c]
call fcn.0042e9c8
mov edx, eax
mov eax, dword [ebx + 0x40]
mov dword [esp], edx
mov ecx, 0x3c
mov edx, edi
call fcn.0042e894
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x49e680
mov dword [esp], 0x4a9eec
mov ecx, 0x4a9eec
mov edx, dword [ebp - 0x98]
call fcn.0042e9c8
mov ecx, eax
lea edx, [edi + 4]
mov eax, dword [ebx + 0x40]
mov dword [esp], ecx
mov ecx, 0x3c
call fcn.0042e894
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x49e680
mov dword [esp], 0x4a9eec
mov ecx, 0x4a9eec
mov edx, dword [ebp - 0x94]
call fcn.0042e9c8
mov ecx, eax
lea edx, [edi + 8]
mov eax, dword [ebx + 0x40]
mov dword [esp], ecx
mov ecx, 0x3c
call fcn.0042e894
add dword [ebp - 0x1c], 0xc
inc esi
cmp dword [ebp - 0x90], esi
jg 0x42f53c
mov edi, dword [ebp - 0xa0]
mov edx, dword [ebx + 0x58]
mov dword [esp + 0x10], 1
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ecx + 4]
mov dword [esp], eax
mov ecx, dword [ecx]
mov eax, ebx
call fcn.0042ea84
mov esi, 1
mov dword [ebp - 0x94], ebx
mov ebx, dword [ebp - 0xb4]
inc esi
mov ecx, dword [ebx + esi*4 - 4]
mov edx, dword [edi + esi*4 - 4]
mov dword [esp + 0x10], esi
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebp - 0x90], esi
setne al
mov dword [esp + 4], eax
mov eax, dword [ebx + esi*4]
mov dword [esp], eax
mov eax, dword [ebp - 0x94]
call fcn.0042ea84
cmp dword [ebp - 0x90], esi
jg 0x42f6d4
mov esi, 1
mov ebx, dword [ebp - 0x90]
lea esi, [esi]
mov eax, dword [edi + esi*4]
mov dword [esp], eax
call sub.msvcrt.dll_free
inc esi
cmp ebx, esi
jg 0x42f728
mov ebx, dword [ebp - 0x94]
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0xa4]
mov dword [esp], edx
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
call sub.msvcrt.dll_free
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 4], 1
jmp 0x42f4d0
xor eax, eax
jmp 0x42f335
mov eax, dword [edi + 0x58]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx], eax
jmp 0x42f405
mov eax, dword [ebp - 0xac]
call fcn.0042ca08
mov eax, dword [0x4fef58]
mov dword [esp + 8], eax
mov eax, dword [0x4fef5c]
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0xb0]
mov dword [esp], ebx
call fcn.004360e0
mov edi, dword [ebp - 0xa8]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x8c]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xac]
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00431fa8
jmp 0x42f033
mov esi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x9c]
call fcn.0042ca08
mov eax, dword [0x4fef58]
mov dword [esp + 8], eax
mov eax, dword [0x4fef5c]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x90]
mov dword [esp], ecx
call fcn.004360e0
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ebx, dword [ebp - 0x8c]
mov dword [esp + 8], ebx
mov edi, dword [ebp - 0x9c]
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call fcn.00431fa8
jmp 0x42f033
mov dword [ebp - 0x94], 0
jmp 0x42f14f
mov edx, dword [ebx + 0x58]
mov dword [esp + 0x10], 1
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x8c]
mov dword [esp + 8], ecx
setne al
movzx eax, al
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ecx + 4]
mov dword [esp], eax
mov ecx, dword [ecx]
mov eax, ebx
call fcn.0042ea84
jmp 0x42f73e