Function at 0x420600
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 0x420620
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 0x420640
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x42065e
mov eax, 0xffffffff
jmp 0x420667
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040c7b0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xb1428f70
mov dword [esp + 0xc], 0xb557b321
mov dword [esp + 0x10], 0xb95ab757
mov dword [esp + 0x14], 0xbd7dbb98
mov dword [esp + 0x18], 0xa12abf24
mov dword [esp + 0x1c], 0xa54ca347
mov dword [esp + 0x20], 0xa94da731
mov dword [esp + 0x24], 0xad44ab39
mov dword [esp + 0x28], 0x515baf8c
mov dword [esp + 0x2c], 0x55c653b7
mov dword [esp + 0x30], 0x59bd57c0
mov dword [esp + 0x34], 0x5db35bb6
mov dword [esp + 0x38], 0x41a25fc9
mov dword [esp + 0x3c], 0x4340
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x420726
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.004222a0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x420700
mov ecx, dword [ebp + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x420751
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 0x420740
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x420781
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 0x420770
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
mov dword [esp + 0x44], esi
je 0x4207b1
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 0x4207a0
mov word [eax], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4207c0
mov edx, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4207e0
mov ebx, dword [edi]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x420800
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x420824
mov eax, 0xffffffff
jmp 0x42082d
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.0040c7b0
add esp, 4
mov edi, eax
movzx eax, word [esi]
mov dword [esp + 4], edi
test ax, ax
je 0x420861
add esi, 2
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x420850
mov word [edi], 0x2f
mov dword [esp + 8], 0xe327e1df
mov dword [esp + 0xc], 0xe712e56c
mov dword [esp + 0x10], 0xfb04f91d
mov dword [esp + 0x14], 0xff07fd0f
mov dword [esp + 0x18], 0xf30cf10f
mov dword [esp + 0x1c], 0xf7c9f507
mov word [esp + 0x20], 0x8988
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x1e
mov esi, dword [esp + 0x44]
ja 0x4208e6
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.00422330
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x1f
jb 0x4208c0
add edi, 2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test cx, cx
je 0x420911
add eax, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [eax]
add eax, 2
test cx, cx
jne 0x420900
mov word [edi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x420941
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 0x420930
mov word [edi], 0
movzx eax, word [ebx]
test ax, ax
je 0x420971
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 0x420960
mov word [edi], 0
mov dword [esp + 8], 0xcfcec916
mov byte [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4209c6
nop
nop
nop
nop
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.004223c0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4209a0
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x78]
call fcn.00424a90
add esp, 0x20
mov ebx, eax
jmp dword [0x45007c]