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

Disassembly:
push 0xffffffffffffffff
push 0x46fd0f
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.0043c160
mov byte [esp + 0xc4], 2
mov edi, dword [esp + 0x6c]
test edi, edi
je 0x422589
xor ecx, ecx
test edi, edi
je 0x421f7f
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 0x421f7a
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 0x421f50
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.004392e0
mov byte [esp + 0xcc], 3
lea ecx, [esp + 0x94]
call fcn.0040f5b0
push 0
lea edx, [esp + 0x98]
lea ecx, [esp + 0x80]
call fcn.00410bc0
add esp, 0xc
mov byte [esp + 0xc4], 4
mov ebp, dword [esp + 0xe8]
and ebp, 0x80000001
jns 0x42200e
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 0x4220fd
mov ecx, dword [esp + 0x54]
mov edi, edi
mov eax, edi
and eax, 1
cmp eax, ebp
jne 0x4220ef
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 0x4221a5
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4221a5
cmp dword [esp + 0x58], esi
jae 0x42209e
push ecx
push esi
lea ecx, [esp + 0x4c]
call fcn.00403de0
jmp 0x4220b7
test esi, esi
jne 0x4220bd
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 0x4220ef
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 0x422050
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
call fcn.00423e40
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 0x422257
cmp ebx, ecx
je 0x422257
mov ebp, edi
cmp ecx, 0xfffffffe
jbe 0x4221af
push str.string_too_long
call fcn.00447bda
cmp ebx, ecx
jae 0x4221c0
push edi
push ecx
lea ecx, [esp + 0x34]
call fcn.00403de0
jmp 0x42221c
cmp ecx, 0x10
jae 0x422206
cmp ecx, edi
cmovb edi, ecx
cmp ebx, 0x10
jb 0x4221f3
mov esi, dword [esp + 0x2c]
test edi, edi
je 0x4221e6
push edi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0044ef50
add esp, 0xc
push esi
call fcn.0044baac
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 0x42221c
test ecx, ecx
jne 0x42222b
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 0x422257
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 0x42239f
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 0x4222ba
sub ebp, eax
cmp edi, ebp
jb 0x422395
or eax, 0xffffffff
sub eax, edi
cmp eax, 1
jbe 0x4221a5
lea edx, [edi + 1]
mov dword [esp + 0x18], edx
cmp edx, 0xfffffffe
ja 0x4221a5
cmp ebx, edx
jae 0x422374
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 0x422270
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 0x422340
add eax, ebp
push edi
push eax
mov eax, dword [esp + 0x28]
inc eax
add eax, ebp
push eax
call fcn.0044bac0
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 0x422270
test edx, edx
jne 0x422303
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 0x422270
push str.invalid_string_position
call fcn.00447c08
cmp edi, 5
jbe 0x4223e8
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 0x422426
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 0x42245b
mov eax, dword [esp + 0x3c]
inc eax
je 0x422482
push eax
lea eax, [esp + 0x30]
push eax
push ebp
call fcn.0044bac0
add esp, 0xc
jmp 0x422482
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 0x4224c8
push dword [esp + 0x2c]
call fcn.0044baac
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 0x4224f8
push dword [esp + 0x44]
call fcn.0044baac
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 0x42252b
push dword [esp + 0x74]
call fcn.0044baac
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 0x422567
push dword [esp + 0x8c]
call fcn.0044baac
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
jmp 0x4225a3
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 0x4225be
push dword [esp + 0x5c]
call fcn.0044baac
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 0x4225f4
push dword [esp + 0xd8]
call fcn.0044baac
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.0044bab1
add esp, 0xb4
ret 0x24