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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x420f60
sar eax, 1
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x420f80
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x420f9e
mov eax, 0xffffffff
jmp 0x420fa7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040cbd0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x3ff23984
mov dword [esp + 0xc], 0x23853daf
mov dword [esp + 0x10], 0x278a2181
mov dword [esp + 0x14], 0x2bef25c4
mov dword [esp + 0x18], 0x2fba29b0
mov dword [esp + 0x1c], 0x13802d89
mov dword [esp + 0x20], 0x17bf1187
mov dword [esp + 0x24], 0x1b881587
mov dword [esp + 0x28], 0x1fa919f8
mov dword [esp + 0x2c], 0x3961db9
mov dword [esp + 0x30], 0x7af0194
mov dword [esp + 0x34], 0xba10596
mov dword [esp + 0x38], 0xfb2099f
mov dword [esp + 0x3c], 0xd0c
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x421066
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.00422a70
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x421040
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x421091
add ecx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421080
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x4210c1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4210b0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
mov dword [esp + 0x44], esi
je 0x4210f1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4210e0
mov word [eax], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421100
sar eax, 1
mov edx, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421120
inc eax
sar ecx, 1
mov edx, ecx
and edx, eax
xor ecx, eax
lea edx, [ecx + edx*2]
lea ecx, [edx + edx]
xor edx, 0xd
mov ebx, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421150
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x42116d
mov eax, 0xffffffff
jmp 0x42116f
add eax, eax
push eax
call fcn.0040cbd0
add esp, 4
mov edi, eax
movzx eax, word [esi]
mov dword [esp + 4], edi
test ax, ax
je 0x4211a1
add esi, 2
mov edi, dword [esp + 4]
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x421190
mov word [edi], 0x2f
mov dword [esp + 8], 0x338f31e7
mov dword [esp + 0xc], 0x2fa22da4
mov dword [esp + 0x10], 0x2bbc29b5
mov dword [esp + 0x14], 0x27bf25b7
mov dword [esp + 0x18], 0x23b421b7
mov dword [esp + 0x1c], 0x1fc91d8f
mov word [esp + 0x20], 0x1918
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1f
ja 0x421226
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.00422b00
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x20
jb 0x421200
add edi, 2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test cx, cx
mov esi, dword [esp + 0x44]
je 0x421251
add eax, 2
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [eax]
add eax, 2
test cx, cx
jne 0x421240
mov word [edi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x421281
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421270
mov word [edi], 0
movzx eax, word [ebx]
test ax, ax
je 0x4212b1
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4212a0
mov word [edi], 0
mov dword [esp], 0xe9eaebca
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x4212f9
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax]
push dword [esp + 8]
push eax
call fcn.00422ba0
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x4212d0
mov eax, esp
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x78]
call fcn.00425360
add esp, 0x20
mov ebx, eax
jmp dword [0x450f48]