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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, dword [ebp + 8]
cmp byte [ebp + 0xc], 2
mov dword [esp + 4], edx
mov dword [esp + 0x14], ecx
jne 0x42f191
mov eax, dword [esi + 0x50]
mov esi, dword [esi + 0x58]
shl esi, 3
test esi, esi
je 0x42f19c
mov edx, dword [eax]
mov ecx, dword [esp + 4]
lea edi, [eax + 8]
push dword [eax + 4]
call fcn.00436bfb
pop ecx
add esi, 0xfffffff8
mov eax, edi
jmp 0x42f174
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
jmp 0x42f264
mov ecx, dword [esp + 4]
lea eax, [esp + 0x18]
mov dword [eax], 4
and dword [eax + 4], 0
and dword [eax + 8], 0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x20]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x40]
shl esi, 3
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x42f21e
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x54]
push dword [ebx + 4]
push dword [ebx]
call fcn.00418bd2
pop ecx
pop edx
test eax, eax
je 0x42f216
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, eax
push dword [eax + 0x58]
push dword [eax + 0x50]
call fcn.0042159a
pop ecx
pop edx
test al, al
je 0x42f216
add edi, 0x3c
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.0040de97
add ebx, 8
add esi, 0xfffffff8
jmp 0x42f1cc
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
xor edi, edi
shl ebx, 2
mov dword [esp + 8], eax
cmp ebx, edi
je 0x42f24e
mov eax, dword [esi + edi]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push dword [eax + 4]
call fcn.00436bfb
pop ecx
add edi, 4
jmp 0x42f233
mov edx, dword [esp + 8]
mov ecx, esi
call fcn.00473538
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [esp + 4]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x58]
push eax
mov dword [esp + 0x14], edi
push edi
call fcn.0042fbab
pop eax
pop ecx
cmp dword [esi + 0x28], 5
mov ebx, dword [esi + 0x104]
lea eax, [esi + 0x28]
mov edx, 0x58d2dc
lea esi, [esp + 0x78]
mov ecx, esi
cmovne edx, eax
call fcn.0042636c
mov eax, dword [esi]
lea edx, [esp + 0x18]
mov dword [esp + 8], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov byte [edx + 0x3d], 3
push 4
pop eax
mov dword [edx + 0x18], eax
and dword [edx + 0x1c], 0
and dword [edx + 0x20], 0
and dword [edx + 4], 0
mov dword [edx], 1
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 8]
mov dword [edx + 0x14], esi
mov dword [edx + 0x10], edi
shr ebx, 0xb
and bl, 1
mov dword [edx + 8], ecx
mov dword [edx + 0x24], eax
and dword [edx + 0x28], 0
and dword [edx + 0x2c], 0
mov dword [edx + 0x30], eax
and dword [edx + 0x34], 0
and dword [edx + 0x38], 0
lea ecx, [esp + 0x58]
mov byte [edx + 0x3c], bl
call fcn.0042fc1b
movzx ecx, byte [eax + 0x3d]
mov bl, byte [ebp + 0xc]
movzx esi, bl
cmp cl, bl
mov edx, ecx
cmovbe edx, esi
cmp cl, 3
mov ecx, eax
mov dword [esp + 8], esi
cmove edx, esi
mov byte [eax + 0x3d], dl
call fcn.0042fc89
test bl, bl
je 0x42f463
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
mov esi, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x70]
imul eax, dword [eax + 0x78], 0x30
add eax, ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0xc]
mov dword [edx + 4], eax
mov dword [edx + 8], esi
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x68]
call fcn.00421961
test eax, eax
je 0x42f463
mov edi, edx
mov edx, dword [esp + 4]
lea ebx, [esp + 0x58]
mov esi, eax
mov ecx, ebx
push edi
push eax
call fcn.0042fbab
pop eax
pop ecx
mov dword [esp + 0x14], edi
push 4
pop edi
mov dword [esp + 0x30], edi
and dword [esp + 0x34], 0
and dword [esp + 0x38], 0
and dword [esp + 0x1c], 0
and dword [esp + 0x18], 0
mov dword [esp + 0x3c], edi
and dword [esp + 0x40], 0
and dword [esp + 0x44], 0
mov dword [esp + 0x48], edi
and dword [esp + 0x4c], 0
and dword [esp + 0x50], 0
mov ecx, ebx
lea edx, [esp + 0x18]
mov word [esp + 0x54], 0x300
call fcn.0042fc1b
movzx ecx, byte [eax + 0x3d]
mov ebx, dword [esp + 8]
cmp cl, byte [ebp + 0xc]
mov edx, ecx
cmovbe edx, ebx
cmp cl, 3
mov ecx, eax
cmove edx, ebx
mov byte [eax + 0x3d], dl
call fcn.0042fc89
push 0x10
pop ecx
mov edx, edi
call fcn.004b8ae6
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor ecx, ecx
lea ebx, [esp + 0x58]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x58edac
mov dword [esp + 0x2c], 0x4b146030
mov dword [esp + 0x28], 0xfcc6873f
mov dword [esp + 0x24], 0xe940837e
mov dword [esp + 0x20], 0x232e8744
push edi
call fcn.004ecdd0
pop eax
mov ecx, dword [esp + 4]
mov edx, esi
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.0043171f
add esp, 0xc
jmp 0x42f358
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret