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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x556358]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], 0
and dl, 2
mov byte [esp + 0xf], dl
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x74]
movzx ecx, word [edi + 0x46]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
movsx eax, byte [edi + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x18], ecx
test dl, dl
je 0x42f047
cmp byte [ebx + 8], 0
je 0x42f038
push ecx
push ebx
call fcn.00426d70
movzx esi, word [ebx + 0x14]
add esp, 8
movzx ecx, ax
add esi, 2
mov eax, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [eax + 0x24]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
shr edx, 1
cmp esi, edx
jg 0x42f038
mov dword [esp + 0x2c], 1
jmp 0x42f047
mov ecx, edi
call fcn.00426570
test eax, eax
jne 0x42f373
cmp byte [ebx + 8], 0
jne 0x42f086
and byte [edi + 1], 0xf1
xor eax, eax
cmp byte [edi], 1
mov word [edi + 0x2a], ax
jne 0x42f077
movzx ecx, word [edi + 0x46]
test cx, cx
je 0x42f077
mov eax, dword [edi + 0x74]
cmp byte [eax + 8], 0
je 0x42f077
lea eax, [ecx - 1]
mov word [edi + 0x46], ax
jmp 0x42f086
mov ecx, edi
call fcn.0042b700
test eax, eax
jne 0x42f373
mov al, byte [edi + 1]
test al, 0x20
je 0x42f0b9
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x3c]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x42f0b4
nop dword [eax + eax]
cmp ecx, edi
je 0x42f0ad
test edx, edx
je 0x42f104
cmp dword [ecx + 0x3c], edx
je 0x42f104
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x42f0a0
and al, 0xdf
mov byte [edi + 1], al
cmp dword [edi + 0x70], 0
jne 0x42f0d6
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x1c]
push 0
push dword [edi + 0x1c]
push dword [edi + 0x18]
call fcn.00426460
add esp, 0xc
mov esi, dword [ebx + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x42f12b
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x42f12b
cmp dword [ecx + 0x60], 0
je 0x42f15a
mov ecx, esi
call fcn.0041de20
test eax, eax
je 0x42f127
mov ecx, esi
call fcn.00420d90
jmp 0x42f152
test ecx, ecx
je 0x42f0b4
push edi
call fcn.00426600
add esp, 4
test eax, eax
je 0x42f0b9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x42f152
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x42f373
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
mov ecx, esi
jbe 0x42f14d
call fcn.004222f0
jmp 0x42f152
call fcn.00422210
test eax, eax
jne 0x42f373
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0042c180
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
movzx eax, word [esp + 0x46]
push eax
call fcn.0042c6a0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x42f373
cmp byte [ebx + 8], al
jne 0x42f281
movsx eax, byte [edi + 0x44]
mov ecx, dword [esp + 0x20]
dec eax
mov esi, dword [edi + 0x74]
cmp ecx, eax
jge 0x42f1b8
mov eax, dword [edi + ecx*4 + 0x7c]
mov eax, dword [eax + 4]
jmp 0x42f1bb
mov eax, dword [esi + 4]
movzx ecx, word [esi + 0x16]
mov edx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x18]
movzx ebx, cx
and ebx, eax
lea eax, [edx + 4]
add ebx, edx
cmp ebx, eax
jae 0x42f200
mov ecx, 0x10a17
call fcn.00492cf0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x4c]
push ebx
push esi
call eax
mov ecx, dword [esi + 0x48]
add esp, 8
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], eax
call fcn.004224e0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42f259
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push dword [esp + 0x1c]
add eax, 4
push eax
lea eax, [ebx - 4]
mov ebx, dword [esp + 0x38]
push eax
mov ecx, ebx
call fcn.0042c7d0
add esp, 0x14
jmp 0x42f25d
mov ebx, dword [esp + 0x28]
movzx edx, word [esi + 0x16]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
dec edx
mov ecx, esi
call fcn.0042c6a0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x42f373
mov ecx, edi
call fcn.0042ea10
mov esi, eax
test esi, esi
jne 0x42f371
movsx ecx, byte [edi + 0x44]
cmp ecx, dword [esp + 0x20]
jle 0x42f2fb
mov ecx, dword [edi + 0x74]
call fcn.00427e90
dec byte [edi + 0x44]
movsx eax, byte [edi + 0x44]
mov esi, dword [esp + 0x20]
cmp eax, esi
jle 0x42f2e3
mov cl, byte [edi + 0x44]
movsx eax, cl
dec cl
mov eax, dword [edi + eax*4 + 0x78]
mov byte [edi + 0x44], cl
test eax, eax
je 0x42f2db
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x42f2d6
call fcn.004207e0
jmp 0x42f2db
call fcn.0041c420
movsx eax, byte [edi + 0x44]
cmp eax, esi
jg 0x42f2b3
movsx eax, byte [edi + 0x44]
mov ecx, edi
mov eax, dword [edi + eax*4 + 0x78]
mov dword [edi + 0x74], eax
call fcn.0042ea10
mov esi, eax
test esi, esi
jne 0x42f371
cmp dword [esp + 0x2c], 0
je 0x42f34f
mov byte [edi], 2
movzx eax, word [ebx + 0x16]
cmp dword [esp + 0x24], eax
jb 0x42f334
mov dword [edi + 0x40], 0xffffffff
mov ax, word [ebx + 0x16]
dec ax
mov word [edi + 0x46], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0042ac70
cmp byte [esp + 0xf], 0
mov esi, eax
je 0x42f369
mov ecx, edi
call fcn.00426510
mov byte [edi], 3
xor eax, eax
cmp esi, 0x10
cmove esi, eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d7fbc
mov esp, ebp
pop ebp
ret