Function at 0x42ee53
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 0x42ee99
mov eax, dword [esi + 0x50]
mov esi, dword [esi + 0x58]
shl esi, 3
test esi, esi
je 0x42eea4
mov edx, dword [eax]
mov ecx, dword [esp + 4]
lea edi, [eax + 8]
push dword [eax + 4]
call fcn.004368b4
pop ecx
add esi, 0xfffffff8
mov eax, edi
jmp 0x42ee7c
mov edi, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
jmp 0x42ef6c
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 0x42ef26
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.004189ac
pop ecx
pop edx
test eax, eax
je 0x42ef1e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, eax
push dword [eax + 0x58]
push dword [eax + 0x50]
call fcn.00421244
pop ecx
pop edx
test al, al
je 0x42ef1e
add edi, 0x3c
lea ecx, [esp + 0x18]
mov edx, edi
call fcn.0042066f
add ebx, 8
add esi, 0xfffffff8
jmp 0x42eed4
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 0x42ef56
mov eax, dword [esi + edi]
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push dword [eax + 4]
call fcn.004368b4
pop ecx
add edi, 4
jmp 0x42ef3b
mov edx, dword [esp + 8]
mov ecx, esi
call fcn.00421312
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.0042f879
pop eax
pop ecx
cmp dword [esi + 0x28], 5
mov ebx, dword [esi + 0x104]
lea eax, [esi + 0x28]
mov edx, 0x58223c
lea esi, [esp + 0x78]
mov ecx, esi
cmovne edx, eax
call fcn.004260bf
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.0042f8e9
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.0042f957
test bl, bl
je 0x42f16b
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.004216ab
test eax, eax
je 0x42f16b
mov edi, edx
mov edx, dword [esp + 4]
lea ebx, [esp + 0x58]
mov esi, eax
mov ecx, ebx
push edi
push eax
call fcn.0042f879
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.0042f8e9
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.0042f957
push 0x10
pop ecx
mov edx, edi
call fcn.004fc1d3
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], 0x583cf8
mov dword [esp + 0x2c], 0xdb03d30a
mov dword [esp + 0x28], 0x35320c71
mov dword [esp + 0x24], 0x7e266936
mov dword [esp + 0x20], 0x588b7b14
push edi
call fcn.004e9db0
pop eax
mov ecx, dword [esp + 4]
mov edx, esi
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.004313fc
add esp, 0xc
jmp 0x42f060
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret