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

Disassembly:
push 0xffffffffffffffff
push 0x46fa5f
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.0043be90
mov byte [esp + 0xc4], 2
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x4222a9
xor ecx, ecx
test edi, edi
je 0x421c9f
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 0x421c9a
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 0x421c70
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0xe4]
call fcn.004030f0
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.00439010
mov byte [esp + 0xcc], 3
lea ecx, [esp + 0x94]
call fcn.0040f270
push 0
lea edx, [esp + 0x98]
lea ecx, [esp + 0x80]
call fcn.004108f0
add esp, 0xc
mov byte [esp + 0xc4], 4
mov ebp, dword [esp + 0xe8]
and ebp, 0x80000001
jns 0x421d2e
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 0x421e1d
mov ecx, dword [esp + 0x54]
mov edi, edi
mov eax, edi
and eax, 1
cmp eax, ebp
jne 0x421e0f
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 0x421ec5
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x421ec5
cmp dword [esp + 0x58], esi
jae 0x421dbe
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.00403d80
jmp 0x421dd7
test esi, esi
jne 0x421ddd
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 0x421e0f
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 0x421d70
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
call fcn.00423b80
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.00402f60
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 0x421f77
cmp ebx, ecx
je 0x421f77
mov ebp, edi
cmp ecx, 0xfffffffe
jbe 0x421ecf
push str.string_too_long
call fcn.0044790a
cmp ebx, ecx
jae 0x421ee0
push edi
push ecx
lea ecx, [esp + 0x34]
call fcn.00403d80
jmp 0x421f3c
cmp ecx, 0x10
jae 0x421f26
cmp ecx, edi
cmovb edi, ecx
cmp ebx, 0x10
jb 0x421f13
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x421f06
push edi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0044ec80
add esp, 0xc
push esi
call fcn.0044b7dc
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 0x421f3c
test ecx, ecx
jne 0x421f4b
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 0x421f77
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 0x4220bf
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 0x421fda
sub ebp, eax
cmp edi, ebp
jb 0x4220b5
or eax, 0xffffffff
sub eax, edi
cmp eax, 1
jbe 0x421ec5
lea edx, [edi + 1]
mov dword [esp + 0x18], edx
cmp edx, 0xfffffffe
ja 0x421ec5
cmp ebx, edx
jae 0x422094
push edi
push edx
lea ecx, [esp + 0x34]
call fcn.00403d80
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
test edx, edx
je 0x421f90
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 0x422060
add eax, ebp
push edi
push eax
mov eax, dword [esp + 0x28]
inc eax
add eax, ebp
push eax
call fcn.0044b7f0
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 0x421f90
test edx, edx
jne 0x422023
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 0x421f90
push str.invalid_string_position
call fcn.00447938
cmp edi, 5
jbe 0x422108
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 0x422146
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 0x42217b
mov eax, dword [esp + 0x3c]
inc eax
je 0x4221a2
push eax
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0044b7f0
add esp, 0xc
jmp 0x4221a2
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 0x4221e8
push dword [esp + 0x2c]
call fcn.0044b7dc
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 0x422218
push dword [esp + 0x44]
call fcn.0044b7dc
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 0x42224b
push dword [esp + 0x74]
call fcn.0044b7dc
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 0x422287
push dword [esp + 0x8c]
call fcn.0044b7dc
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
jmp 0x4222c3
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 0x4222de
push dword [esp + 0x5c]
call fcn.0044b7dc
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 0x422314
push dword [esp + 0xd8]
call fcn.0044b7dc
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.0044b7e1
add esp, 0xb4
ret 0x24