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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
lea esi, [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edx
mov ecx, esi
push 1
push 0x4e6ade
push dword [ebp + 8]
call fcn.0040e400
add esp, 0xc
cmp dword [esi], 0
je 0x420772
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov esi, edx
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 8], edx
not esi
mov dword [esp + 0x44], esi
mov ecx, eax
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x14], eax
sub ecx, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], ecx
mov ecx, ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
add ecx, esi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
mov esi, ecx
mov dword [esp + 0x20], ecx
cmovb esi, eax
cmp ebx, 0xffffffff
mov ebx, ecx
cmove esi, eax
cmove ebx, edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], esi
dec esi
mov ebx, edi
mov dword [esp + 0x24], esi
mov edi, ebx
sub edi, edx
cmp edi, dword [esp + 4]
jae 0x42088b
mov eax, dword [esp + 0x18]
mov cl, byte [eax + edi]
xor eax, eax
xor esi, esi
inc esi
shld eax, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
and eax, dword [esp + 0x48]
and esi, dword [esp + 0x4c]
or esi, eax
je 0x420705
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], edi
lea edx, [eax + ebx]
add ebx, ecx
mov ecx, esi
sub ecx, 1
jb 0x4206a1
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 8]
jae 0x42089b
lea edi, [edx + esi]
cmp edi, dword [esp + 4]
jae 0x4208a6
mov eax, dword [esp + 0x1c]
mov al, byte [eax + esi - 1]
cmp al, byte [ebx + esi]
mov esi, ecx
je 0x420655
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
add ebx, ecx
sub ebx, eax
cmp dword [esp + 0xc], 0xffffffff
je 0x4205fd
jmp 0x420720
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 8]
add ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x54]
jae 0x42072d
cmp eax, edx
jae 0x4208b3
cmp ecx, dword [esp + 4]
jae 0x4208c3
mov bl, byte [edi]
mov esi, dword [esp + 0x18]
inc edi
inc eax
cmp bl, byte [esi + ecx]
mov ebx, dword [esp + 0x10]
lea ecx, [ecx + 1]
je 0x4206b7
sub ebx, dword [esp + 0x28]
cmp dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
je 0x4205fd
mov edi, ebx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0xc]
jmp 0x4205d8
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp ebx, 0xffffffff
cmovne ecx, edx
jmp 0x4205d8
mov edi, ebx
mov ebx, dword [esp + 0xc]
mov ecx, edx
jmp 0x4205d8
mov edx, dword [esp + 0x3c]
inc edx
mov ecx, dword [esp + 0x38]
mov eax, edx
mov edx, dword [ebp + 8]
push 0x4a5904
push eax
call fcn.0041caa3
pop ecx
pop ecx
mov ecx, eax
mov esi, eax
mov edi, edx
call fcn.0040faf0
xor ecx, ecx
test al, 1
jne 0x42088d
mov ecx, dword [esp + 0x2c]
shr eax, 0x10
mov dword [ecx + 4], edi
mov word [ecx + 8], ax
mov ecx, esi
jmp 0x42088d
mov al, byte [esp + 0x66]
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x60]
xor esi, esi
dec esi
mov byte [esp + 8], al
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x65]
cmp byte [esp + 8], 0
jne 0x42088b
mov byte [esp + 4], al
xor al, 1
mov edi, edx
mov ecx, edx
mov edx, ebx
mov byte [esp + 0x65], al
push dword [esp + 0x1c]
call fcn.0041cad8
pop ecx
test eax, eax
je 0x4208d4
test edx, edx
je 0x42087e
mov cl, byte [eax + edx - 1]
test cl, cl
js 0x4207df
movzx eax, cl
mov edx, edi
jmp 0x42083f
movzx ebx, byte [eax + edx - 2]
cmp bl, 0xc0
jge 0x420811
mov dword [esp + 0x18], ebx
movzx ebx, byte [eax + edx - 3]
cmp bl, 0xc0
mov dword [esp + 0x10], ebx
jge 0x420818
movzx eax, byte [eax + edx - 4]
mov esi, dword [esp + 0x10]
and eax, 7
and esi, 0x3f
shl eax, 6
or esi, eax
jmp 0x42081f
and ebx, 0x1f
mov edx, edi
jmp 0x420830
mov esi, dword [esp + 0x10]
and esi, 0xf
mov ebx, dword [esp + 0x18]
shl esi, 6
mov edx, edi
and ebx, 0x3f
or ebx, esi
xor esi, esi
dec esi
and cl, 0x3f
shl ebx, 6
movzx eax, cl
or eax, ebx
mov ebx, dword [esp + 0x24]
cmp byte [esp + 4], 0
jne 0x420731
cmp eax, 0x110000
je 0x42088b
cmp eax, 0x80
mov ecx, esi
jb 0x420871
cmp eax, 0x800
push 0xfffffffffffffffe
pop ecx
jb 0x420871
xor ecx, ecx
cmp eax, 0x10000
setb cl
or ecx, 0xfffffffc
add edx, ecx
mov al, 1
mov dword [esp + 0x60], edx
jmp 0x42079b
cmp byte [esp + 4], 0
mov edx, edi
jne 0x420731
xor ecx, ecx
mov eax, dword [esp + 0x2c]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 8]
push 0x4a5220
jmp 0x4208cc
mov edx, dword [esp + 4]
mov ecx, edi
push 0x4a5230
jmp 0x4208cc
mov ecx, dword [esp + 0x14]
cmp ecx, edx
cmovbe ecx, edx
push 0x4a5200
jmp 0x4208cc
mov edx, dword [esp + 4]
push 0x4a5210
call fcn.00493b00
pop eax
ud2
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push 0x4a5330
push edi
push 0
call fcn.00494080
add esp, 0xc
ud2