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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov esi, dword [ebp + 8]
call fcn.0041fb20
test al, al
je 0x420c47
lea ecx, [esp + 0x64]
mov edx, 0x571a27
push 0xb
call fcn.00421e60
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, 0x80000000
jne 0x420c5f
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
jmp 0x421149
mov ecx, esi
mov edx, 0x571a27
push 0xb
call fcn.00421e60
add esp, 4
mov eax, esi
jmp 0x421149
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], 0
lea eax, [esp + 0x70]
push 0xb
push 0x571a32
mov dword [esp + 0x5c], edx
push edx
mov dword [esp + 0x48], ecx
push ecx
push eax
call fcn.004e0380
add esp, 0x14
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0xa0]
cmp edx, ecx
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
cmova esi, edx
cmp dword [esp + 0x70], 0
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 4], esi
je 0x42109d
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], 0
mov dword [esp + 8], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x40], eax
mov eax, ecx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
lea eax, [edx - 1]
cmp eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x94]
lea ecx, [ecx - 1]
mov dword [esp + 0x44], ecx
mov ecx, 1
setb byte [esp + 0x37]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x10], eax
lea eax, [eax + edx - 1]
mov dword [esp + 0x5c], eax
jmp 0x420d99
mov ecx, dword [esp]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 4]
add ebx, dword [esp + 0xc]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
add eax, 0xb
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], 0xffffffff
mov dword [esp], ecx
lea eax, [ebx + eax]
je 0x420ed0
cmp eax, esi
jb 0x420dda
jmp 0x421097
add ebx, dword [esp + 0xc]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, esi
jae 0x421097
movzx ecx, byte [edi + eax]
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x30]
and edx, dword [esp + 0x50]
or edx, eax
je 0x420dc0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, edi
mov esi, ebx
add edi, ebx
cmp ecx, edx
cmova edx, ecx
mov ecx, dword [esp + 0xc]
mov eax, edx
mov dword [esp + 0x28], edx
cmp edx, ecx
cmova ecx, edx
nop word cs:[eax + eax]
cmp ecx, eax
je 0x420e70
lea ebx, [esi + eax]
cmp ebx, dword [esp + 4]
jae 0x42134a
mov edx, dword [esp + 0x10]
lea ebx, [eax + 1]
movzx edx, byte [edx + eax]
cmp dl, byte [edi + eax]
mov eax, ebx
je 0x420e30
sub esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], 0
add esi, ebx
mov ebx, esi
mov esi, dword [esp + 4]
jmp 0x420dcc
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov ebx, esi
mov esi, ecx
cmp dword [esp + 0x14], eax
jae 0x420ec0
dec eax
cmp eax, dword [esp + 0xc]
jae 0x421385
lea edx, [eax + ebx]
cmp edx, esi
jae 0x42137c
mov ecx, dword [esp + 0x10]
movzx ecx, byte [ecx + eax]
cmp cl, byte [edi + edx]
je 0x420e80
mov eax, dword [esp + 0x58]
add ebx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
jmp 0x420dcc
mov dword [esp + 0x14], 0
jmp 0x420fc8
cmp eax, esi
jb 0x420ef2
jmp 0x421097
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, esi
jae 0x421097
movzx ecx, byte [edi + eax]
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x30]
and edx, dword [esp + 0x50]
or edx, eax
je 0x420ee0
mov edx, dword [esp + 0x2c]
mov eax, ebx
lea ecx, [edi + ebx]
mov dword [esp + 0x28], ebx
neg eax
nop dword [eax + eax]
cmp dword [esp + 0x60], edx
je 0x420f70
mov edi, esi
lea esi, [ebx + edx]
cmp esi, edi
mov esi, edi
jae 0x421364
mov edi, dword [esp + 0x10]
dec eax
movzx ebx, byte [edi + edx]
mov edi, dword [esp + 0x24]
cmp bl, byte [ecx + edx]
mov ebx, dword [esp + 0x28]
lea edx, [edx + 1]
je 0x420f30
neg eax
mov ebx, eax
jmp 0x420ee4
test byte [esp + 0x37], 1
je 0x421076
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x2c]
add eax, ebx
nop dword [eax]
sub edx, 1
jb 0x420fc0
cmp eax, esi
jae 0x42138c
movzx ebx, byte [ecx]
dec ecx
cmp bl, byte [edi + eax]
mov ebx, dword [esp + 0x28]
lea eax, [eax - 1]
je 0x420f90
add ebx, dword [esp + 0x40]
jmp 0x420ee4
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
add ecx, eax
lea edx, [eax + ebx]
mov eax, edi
mov dword [esp + 8], ecx
sub edx, ecx
mov ecx, dword [esp + 0x38]
sub eax, ecx
cmp eax, edx
jae 0x421020
mov dword [esp], edx
push edx
push ecx
lea eax, [esp + 0x20]
push eax
call fcn.00422cd0
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp]
jmp 0x421025
mov eax, dword [esp]
mov esi, ecx
mov dword [esp], eax
add eax, esi
push edx
push dword [esp + 0xc]
push eax
mov ebx, edx
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0xc
add eax, ebx
sub edi, eax
mov dword [esp + 0x20], eax
cmp edi, 0xa
ja 0x420d60
push 0xb
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00422cd0
add esp, 0xc
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x420d6f
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x14], 0xffffffff
je 0x420fc8
mov eax, dword [esp + 0x4c]
mov ecx, 0x5717b0
jmp 0x421395
mov edx, dword [esp + 8]
jmp 0x4210b9
test eax, 0xff0000
je 0x421151
xor edx, edx
mov dword [esp + 0x38], 0
mov dword [esp], 1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x38]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x18]
sub ecx, edx
mov ebx, edx
sub eax, edi
cmp eax, ecx
mov eax, ecx
jae 0x4210f8
mov ecx, eax
lea eax, [esp + 0x18]
mov esi, ecx
push ecx
push edi
push eax
call fcn.00422cd0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, esi
jmp 0x4210fb
mov ecx, dword [esp]
add ecx, edi
push eax
push ebx
push ecx
mov esi, eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x48]
movsd xmm0, qword [esp + 0x18]
add edi, esi
mov dword [esp + 0x78], edi
test eax, eax
movsd qword [esp + 0x70], xmm0
je 0x421133
push 1
push eax
push dword [esp + 0x44]
call main
add esp, 0xc
mov eax, dword [esp + 0x78]
mov ecx, dword [ebp + 8]
movsd xmm0, qword [esp + 0x70]
mov dword [ecx + 8], eax
mov eax, ecx
movsd qword [ecx], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x74]
xor eax, eax
mov ecx, 1
xor ebx, ebx
jmp 0x42119a
mov ecx, dword [esp]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 4]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
add eax, 0xb
mov dword [esp + 0x20], eax
xor dl, 1
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x10]
mov ebx, edx
test edx, edx
je 0x4211b6
cmp edx, esi
jae 0x4211b0
cmp byte [edi + edx], 0xc0
jge 0x4211b6
jmp 0x4213a5
jne 0x4213a5
cmp edx, esi
mov dword [esp + 0x38], eax
mov dword [esp], ecx
jne 0x4211e0
mov ecx, dword [esp + 0x30]
mov edx, ebx
test cl, cl
jne 0x4212b2
jmp 0x4210b9
movzx eax, byte [edi + edx]
test al, al
js 0x4211f7
mov ecx, dword [esp + 0x30]
test cl, cl
je 0x42125e
mov esi, edx
jmp 0x4212b0
mov esi, edi
movzx edi, byte [edi + edx + 1]
mov ecx, eax
mov dword [esp + 0x10], edx
and ecx, 0x1f
and edi, 0x3f
cmp al, 0xe0
jb 0x42123a
movzx edx, byte [esi + edx + 2]
shl edi, 6
and edx, 0x3f
or edx, edi
cmp al, 0xf0
jb 0x421243
mov eax, dword [esp + 0x10]
and ecx, 7
shl edx, 6
shl ecx, 0x12
movzx eax, byte [esi + eax + 3]
and eax, 0x3f
or eax, edx
or eax, ecx
jmp 0x42124a
shl ecx, 6
or ecx, edi
mov eax, ecx
jmp 0x42124a
shl ecx, 0xc
or edx, ecx
mov eax, edx
mov edx, dword [esp + 4]
mov edi, esi
mov esi, edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test cl, cl
jne 0x4211f0
mov ecx, 1
cmp eax, 0x80
jb 0x421283
mov ecx, 2
cmp eax, 0x800
jb 0x421283
cmp eax, 0x10000
mov ecx, 4
sbb ecx, 0
add edx, ecx
je 0x42129c
cmp edx, esi
jae 0x421296
cmp byte [edi + edx], 0xc0
jge 0x42129c
jmp 0x4213a5
jne 0x4213a5
mov cl, 1
cmp edx, esi
je 0x4212b0
movzx eax, byte [edi + edx]
mov esi, edx
test al, al
jns 0x4212b0
cmp al, 0xe0
nop
mov edx, ebx
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], ecx
lea ebx, [eax + esi]
mov esi, dword [esp + 0x38]
add edx, eax
mov eax, edi
sub ebx, edx
mov dword [esp + 8], edx
sub eax, esi
cmp eax, ebx
jae 0x421300
push ebx
push esi
lea eax, [esp + 0x20]
push eax
call fcn.00422cd0
add esp, 0xc
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
jmp 0x421303
mov eax, dword [esp]
mov dword [esp], eax
add eax, esi
push ebx
push dword [esp + 0xc]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0xc
add eax, ebx
sub edi, eax
mov dword [esp + 0x20], eax
cmp edi, 0xa
ja 0x421160
push 0xb
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00422cd0
add esp, 0xc
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x421167
mov edx, dword [esp + 4]
add esi, dword [esp + 0x28]
mov ecx, 0x5717d0
cmp edx, esi
mov dword [esp + 0xc], edx
cmova esi, edx
mov eax, esi
jmp 0x421395
mov eax, dword [esp + 0x28]
mov ecx, 0x5717d0
mov dword [esp + 0xc], esi
add eax, dword [esp + 0x2c]
cmp esi, eax
cmova eax, esi
jmp 0x421395
mov ecx, 0x5717c0
mov eax, edx
jmp 0x421391
mov ecx, 0x5717b0
jmp 0x421395
mov ecx, 0x5717c0
mov dword [esp + 0xc], esi
push ecx
push dword [esp + 0x10]
push eax
call fcn.004d9dd0
add esp, 0xc
jmp 0x4213bd
push 0x5717f0
mov eax, dword [esp + 8]
push eax
push edx
push eax
push dword [esp + 0x34]
call fcn.004e0fe0
add esp, 0x14
ud2