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

Disassembly:
push 0xffffffffffffffff
push 0x46f82f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcc]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc4], 1
lea edx, [esp + 0xd8]
lea ecx, [esp + 0x5c]
call fcn.0043bcf0
mov byte [esp + 0xc4], 2
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x422119
xor ecx, ecx
test edi, edi
je 0x421b0f
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x5c]
nop
cmp edx, 0x10
lea eax, [esp + 0x5c]
cmovae eax, esi
cmp byte [eax + ecx], 0x3d
jne 0x421b0a
cmp edx, 0x10
lea eax, [esp + 0x5c]
cmovae eax, esi
mov byte [eax + ecx], 0x7c
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x5c]
inc ecx
cmp ecx, edi
jb 0x421ae0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xe4]
call fcn.00403150
cmp dword [esp + 0xec], 0x10
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0xec]
lea edx, [esp + 0xe0]
cmovae edx, dword [esp + 0xe0]
lea ecx, [esp + 0x94]
call fcn.00438e70
mov byte [esp + 0xcc], 3
lea ecx, [esp + 0x94]
call fcn.0040f150
push 0
lea edx, [esp + 0x98]
lea ecx, [esp + 0x80]
call fcn.00410760
add esp, 0xc
mov byte [esp + 0xc4], 4
mov ebp, dword [esp + 0xe8]
and ebp, 0x80000001
jns 0x421b9e
dec ebp
or ebp, 0xfffffffe
inc ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0xc4], 5
xor edi, edi
cmp dword [esp + 0x84], edi
jbe 0x421c8d
mov ecx, dword [esp + 0x54]
mov edi, edi
mov eax, edi
and eax, 1
cmp eax, ebp
jne 0x421c7f
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
mov bl, byte [eax + edi]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x421d35
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x421d35
cmp dword [esp + 0x58], esi
jae 0x421c2e
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.00403de0
jmp 0x421c47
test esi, esi
jne 0x421c4d
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x44]
mov dword [esp + 0x54], esi
cmovae eax, dword [esp + 0x44]
mov byte [eax], 0
mov ecx, dword [esp + 0x54]
test esi, esi
setne al
test al, al
je 0x421c7f
cmp dword [esp + 0x58], 0x10
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
mov byte [ecx + eax], bl
lea eax, [esp + 0x44]
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x54], esi
cmovae eax, dword [esp + 0x44]
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x54]
inc edi
cmp edi, dword [esp + 0x84]
jb 0x421be0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
call fcn.004239d0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x88]
push 0xffffffffffffffff
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x78]
push 0
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0xe0]
push eax
call fcn.00402fc0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0xc4], 7
mov ecx, dword [esp + 0xe8]
mov esi, ecx
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
cmp edi, ecx
ja 0x421de7
cmp ebx, ecx
je 0x421de7
mov ebp, edi
cmp ecx, 0xfffffffe
jbe 0x421d3f
push str.string_too_long
call fcn.0044776a
cmp ebx, ecx
jae 0x421d50
push edi
push ecx
lea ecx, [esp + 0x34]
call fcn.00403de0
jmp 0x421dac
cmp ecx, 0x10
jae 0x421d96
cmp ecx, edi
cmovb edi, ecx
cmp ebx, 0x10
jb 0x421d83
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x421d76
push edi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0044eaf0
add esp, 0xc
push esi
call fcn.0044b63d
mov esi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], edi
mov byte [esp + edi + 0x2c], 0
jmp 0x421dac
test ecx, ecx
jne 0x421dbb
cmp ebx, 0x10
mov dword [esp + 0x3c], ecx
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
mov byte [eax], cl
mov ecx, dword [esp + 0xe8]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test esi, esi
setne al
test al, al
je 0x421de7
cmp ebx, 0x10
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0xe8]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
cmp dword [esp + 0xec], 0x10
lea esi, [esp + 0xd8]
cmovae esi, dword [esp + 0xd8]
add esi, ecx
cmp dword [esp + 0xec], 0x10
lea eax, [esp + 0xd8]
cmovae eax, dword [esp + 0xd8]
cmp esi, eax
je 0x421f2f
mov al, byte [esi - 1]
lea ebp, [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
dec esi
cmp ebx, 0x10
mov byte [esp + 0x17], al
lea eax, [esp + 0x2c]
cmovae ebp, ecx
cmovae eax, ecx
add ebp, edi
je 0x421e4a
sub ebp, eax
cmp edi, ebp
jb 0x421f25
or eax, 0xffffffff
sub eax, edi
cmp eax, 1
jbe 0x421d35
lea edx, [edi + 1]
mov dword [esp + 0x18], edx
cmp edx, 0xfffffffe
ja 0x421d35
cmp ebx, edx
jae 0x421f04
push edi
push edx
lea ecx, [esp + 0x34]
call fcn.00403de0
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
test edx, edx
je 0x421e00
cmp ebx, 0x10
lea edx, [esp + 0x2c]
lea eax, [esp + 0x2c]
cmovae edx, ecx
cmovae eax, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
sub edi, ebp
je 0x421ed0
add eax, ebp
push edi
push eax
mov eax, dword [esp + 0x28]
inc eax
add eax, ebp
push eax
call fcn.0044b660
mov ebx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp ebx, 0x10
lea eax, [esp + 0x2c]
cmovae eax, ecx
mov cl, byte [esp + 0x17]
mov byte [eax + ebp], cl
lea eax, [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x3c], edx
cmovae eax, dword [esp + 0x2c]
mov byte [eax + edx], 0
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
jmp 0x421e00
test edx, edx
jne 0x421e93
cmp ebx, 0x10
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x2c]
cmovae eax, ecx
mov byte [eax], dl
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
jmp 0x421e00
push str.invalid_string_position
call fcn.00447798
cmp edi, 5
jbe 0x421f78
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
cmp ebx, 0x10
lea ecx, [esp + 0x2c]
cmovae eax, esi
cmovae ecx, esi
mov dl, byte [eax + 5]
lea eax, [esp + 0x2c]
cmovae eax, esi
mov al, byte [edi + eax - 5]
mov byte [ecx + 5], al
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x3c]
cmovae ecx, dword [esp + 0x2c]
mov byte [eax + ecx - 5], dl
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x421fb6
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
cmp ebx, 0x10
lea ecx, [esp + 0x2c]
cmovae eax, esi
cmovae ecx, esi
mov dl, byte [eax]
lea eax, [esp + 0x2c]
cmovae eax, esi
mov al, byte [edi + eax - 1]
mov byte [ecx], al
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x3c]
cmovae ecx, dword [esp + 0x2c]
mov byte [eax + ecx - 1], dl
mov ebp, dword [esp + 0x24]
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
cmp dword [esp + 0x40], 0x10
jae 0x421feb
mov eax, dword [esp + 0x3c]
inc eax
je 0x422012
push eax
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0044b660
add esp, 0xc
jmp 0x422012
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0xc4], 8
mov eax, dword [esp + 0x2c]
mov dword [ebp], eax
mov byte [esp + 0xc4], 7
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x3c]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x14], eax
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0x1c], 1
mov byte [esp + 0xc4], 5
cmp dword [esp + 0x40], 0x10
jb 0x422058
push dword [esp + 0x2c]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0xc4], 4
cmp dword [esp + 0x58], 0x10
jb 0x422088
push dword [esp + 0x44]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov byte [esp + 0xc4], 3
cmp dword [esp + 0x88], 0x10
jb 0x4220bb
push dword [esp + 0x74]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
mov byte [esp + 0xc4], 2
cmp dword [esp + 0xa0], 8
jb 0x4220f7
push dword [esp + 0x8c]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
jmp 0x422133
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
mov dword [esp + 0x1c], 1
mov byte [esp + 0xc4], 1
cmp dword [esp + 0x70], 0x10
jb 0x42214e
push dword [esp + 0x5c]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0xc4], 0
cmp dword [esp + 0xec], 0x10
jb 0x422184
push dword [esp + 0xd8]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], 0
mov byte [esp + 0xd8], 0
mov eax, ebp
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0044b642
add esp, 0xb4
ret 0x24