Function at 0x421fd0
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
lea ebx, [esp + 0x70]
mov edx, 0x538610
mov ecx, ebx
push 0x12
call fcn.004231c0
add esp, 4
mov esi, dword [esp + 0x70]
cmp esi, 0x80000000
je 0x42200a
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
jmp 0x422011
xor eax, eax
mov edi, 1
push eax
push edi
push ebx
call fcn.004e7e70
add esp, 0xc
cmp byte [esp + 0x70], 0
sete al
cmp dword [esp + 0x74], 0x55f0
setae bl
and bl, al
test esi, 0x7fffffff
jne 0x422069
test bl, bl
je 0x422079
lea ecx, [esp + 0x64]
mov edx, 0x5385ef
push 0xb
call fcn.004231c0
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, 0x80000000
jne 0x422092
mov eax, dword [ebp + 8]
mov dword [eax], 0x80000000
jmp 0x422573
push 1
push esi
push edi
call fcn.0040d1e0
add esp, 0xc
test bl, bl
jne 0x42203d
mov esi, dword [ebp + 8]
mov edx, 0x5385ef
mov ecx, esi
push 0xb
call fcn.004231c0
add esp, 4
jmp 0x422571
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
push 0xb
push 0x5385fa
mov dword [esp + 0x58], ecx
push ecx
mov dword [esp + 0x48], eax
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004e2a30
add esp, 0x14
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0xa0]
mov edx, dword [esp + 0x7c]
cmp ecx, eax
mov edi, eax
mov dword [esp + 0x34], esi
cmova edi, ecx
cmp dword [esp + 0x70], 0
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 8], edi
je 0x4224ed
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x8c]
sub ecx, dword [esp + 0x40]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x14]
dec ecx
cmp ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x94]
lea eax, [eax - 1]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
setb byte [esp + 0x33]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xa8]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x18], 0xffffffff
lea eax, [ebx + eax]
je 0x422465
nop word [eax + eax]
cmp eax, edi
jb 0x4221da
jmp 0x4224e8
add ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, edi
jae 0x4224e8
movzx ecx, byte [esi + 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 + 0x28]
and edx, dword [esp + 0x4c]
or edx, eax
je 0x4221c0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esi + ebx]
cmp eax, ecx
mov edi, ecx
mov ecx, dword [esp + 0x2c]
cmova edi, eax
mov eax, edi
mov dword [esp + 0x38], edi
cmp edi, ecx
cmova ecx, edi
nop word cs:[eax + eax]
nop
cmp ecx, eax
je 0x422280
lea esi, [ebx + eax]
mov edi, ebx
cmp esi, dword [esp + 8]
jae 0x4227bf
mov ebx, dword [esp + 0x10]
lea esi, [eax + 1]
movzx ebx, byte [ebx + eax]
cmp bl, byte [edx + eax]
mov eax, esi
mov ebx, edi
je 0x422230
sub ebx, dword [esp + 0x14]
mov edi, dword [esp + 8]
mov dword [esp + 0x18], 0
add ebx, esi
mov esi, dword [esp + 0x34]
jmp 0x4221cc
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 8]
mov esi, dword [esp + 0x34]
nop dword [eax]
cmp dword [esp + 0x18], eax
jae 0x4222d0
dec eax
cmp eax, dword [esp + 0x2c]
jae 0x4227ea
lea ecx, [eax + ebx]
cmp ecx, edi
jae 0x4227de
mov edx, dword [esp + 0x10]
movzx edx, byte [edx + eax]
cmp dl, byte [esi + ecx]
je 0x422290
mov eax, dword [esp + 0x58]
add ebx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
jmp 0x4221cc
mov dword [esp + 0x18], 0
jmp 0x4223c8
add ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add eax, ebx
cmp eax, edi
jae 0x4224e8
movzx ecx, byte [esi + 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 + 0x28]
and edx, dword [esp + 0x4c]
or edx, eax
je 0x4222e0
mov edx, dword [esp + 0x14]
mov eax, ebx
lea ecx, [esi + ebx]
mov edi, ebx
neg eax
nop dword [eax]
cmp dword [esp + 0x60], edx
je 0x422370
lea esi, [ebx + edx]
cmp esi, dword [esp + 8]
jae 0x4227c5
mov esi, dword [esp + 0x10]
dec eax
movzx ebx, byte [esi + edx]
mov esi, dword [esp + 0x34]
cmp bl, byte [ecx + edx]
lea edx, [edx + 1]
mov ebx, edi
je 0x422330
mov edi, dword [esp + 8]
neg eax
mov ebx, eax
jmp 0x4222e4
test byte [esp + 0x33], 1
je 0x4224c3
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
add eax, ebx
nop dword [eax]
sub edx, 1
jb 0x4223c0
cmp eax, dword [esp + 8]
jae 0x4227f9
movzx ebx, byte [ecx]
dec ecx
cmp bl, byte [esi + eax]
lea eax, [eax - 1]
mov ebx, edi
je 0x422390
add ebx, dword [esp + 0x40]
mov edi, dword [esp + 8]
jmp 0x4222e4
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp]
mov dword [esp], ebx
add ecx, eax
lea edx, [eax + ebx]
mov ebx, ecx
sub edx, ecx
mov ecx, dword [esp + 0x1c]
mov eax, ecx
sub eax, dword [esp + 4]
cmp eax, edx
jb 0x42246f
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push edx
push ebx
push eax
mov ebx, edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x38]
add edi, ebx
mov eax, edi
mov dword [esp + 0x24], edi
sub ecx, edi
cmp ecx, 0xa
jbe 0x4224a2
mov ebx, dword [esp]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 8]
add ebx, dword [esp + 0x2c]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
add eax, 0xb
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x18], 0xffffffff
lea eax, [ebx + eax]
jne 0x4221b0
cmp eax, edi
jb 0x4222f2
jmp 0x4224e8
push edx
push dword [esp + 8]
lea eax, [esp + 0x24]
push eax
mov edi, edx
call fcn.00423e90
mov edx, edi
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0xc], ecx
jmp 0x4223f1
push 0xb
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00423e90
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
jmp 0x42241f
cmp dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xffffffff
je 0x4223c8
push 0x538374
push dword [esp + 0x30]
push dword [esp + 0x50]
call fcn.004dc480
mov esi, dword [esp]
jmp 0x42250b
test edx, 0xff0000
je 0x42257b
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
sub edx, dword [esp + 4]
add esi, eax
add ecx, eax
sub ecx, esi
mov ebx, esi
mov esi, ecx
cmp edx, ecx
jb 0x422798
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push esi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, esi
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edi
movsd xmm0, qword [esp + 0x1c]
test ecx, ecx
mov dword [eax + 8], edi
movsd qword [eax], xmm0
je 0x422573
push 1
push ecx
push dword [esp + 0x44]
mov esi, eax
call fcn.0040d1e0
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], 0
mov dword [esp + 0xc], 1
mov dword [esp], 0
jmp 0x4225dc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 8]
mov dword [ecx + eax + 7], 0x20313120
mov dword [ecx + eax + 4], 0x2073776f
mov dword [ecx + eax], 0x646e6957
mov ecx, dword [esp + 0x10]
add eax, 0xb
xor dl, 1
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp], ecx
test ecx, ecx
je 0x4225f6
cmp ecx, edi
jae 0x4225f0
cmp byte [esi + ecx], 0xc0
jge 0x4225f6
jmp 0x422808
jne 0x422808
cmp ecx, edi
jne 0x422610
mov esi, dword [esp]
test dl, dl
mov ecx, edi
jne 0x422700
jmp 0x42250b
movzx eax, byte [esi + ecx]
test al, al
js 0x422624
test dl, dl
je 0x42269b
mov esi, dword [esp]
jmp 0x422700
mov dword [esp + 0x10], ecx
mov ebx, esi
mov ecx, eax
mov esi, dword [esp + 0x10]
and ecx, 0x1f
movzx esi, byte [ebx + esi + 1]
and esi, 0x3f
cmp al, 0xe0
jb 0x422673
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
shl esi, 6
movzx edx, byte [ebx + edx + 2]
and edx, 0x3f
or edx, esi
cmp al, 0xf0
jb 0x422686
mov eax, dword [esp + 0x10]
and ecx, 7
shl edx, 6
shl ecx, 0x12
movzx eax, byte [ebx + eax + 3]
and eax, 0x3f
or eax, edx
or eax, ecx
jmp 0x42268d
shl ecx, 6
or ecx, esi
mov esi, ebx
mov eax, ecx
mov ecx, dword [esp + 0x10]
test dl, dl
jne 0x42261c
jmp 0x42269b
shl ecx, 0xc
or edx, ecx
mov eax, edx
mov edx, dword [esp + 0x28]
mov esi, ebx
mov ecx, dword [esp + 0x10]
test dl, dl
jne 0x42261c
mov edx, ecx
mov ecx, 1
cmp eax, 0x80
jb 0x4226c2
mov ecx, 2
cmp eax, 0x800
jb 0x4226c2
cmp eax, 0x10000
mov ecx, 4
sbb ecx, 0
add edx, ecx
mov ecx, edx
je 0x4226dd
cmp ecx, edi
jae 0x4226d7
cmp byte [esi + ecx], 0xc0
jge 0x4226dd
jmp 0x422808
jne 0x422808
mov dl, 1
cmp ecx, edi
jne 0x4226ea
mov esi, dword [esp]
mov ecx, edi
jmp 0x422700
movzx eax, byte [esi + ecx]
test al, al
jns 0x42261c
mov esi, dword [esp]
cmp al, 0xe0
nop dword [eax + eax]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ecx
add esi, eax
lea ebx, [eax + ecx]
mov dword [esp], esi
sub ebx, esi
mov esi, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 4]
cmp eax, ebx
jb 0x422770
mov edi, dword [esp + 4]
mov eax, dword [esp + 0xc]
add eax, edi
push ebx
push dword [esp + 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add edi, ebx
sub esi, edi
mov eax, edi
mov dword [esp + 0x24], edi
cmp esi, 0xa
ja 0x4225a0
push 0xb
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00423e90
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
jmp 0x4225a0
push ebx
push dword [esp + 8]
lea eax, [esp + 0x24]
push eax
call fcn.00423e90
add esp, 0xc
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
jmp 0x422724
lea eax, [esp + 0x1c]
push esi
push dword [esp + 8]
push eax
call fcn.00423e90
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
jmp 0x42252d
add edi, dword [esp + 0x38]
jmp 0x4227c9
add edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, edi
cmova edi, eax
push 0x538394
push eax
push edi
call fcn.004dc480
push 0x538384
push edi
push ecx
call fcn.004dc480
push 0x538374
push dword [esp + 0x30]
push eax
call fcn.004dc480
push 0x538384
push dword [esp + 0xc]
push eax
call fcn.004dc480
push 0x5383b4
mov eax, dword [esp + 0xc]
push eax
push ecx
push eax
push dword [esp + 0x44]
call fcn.004e3690
nop dword [eax]