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

Disassembly:
push 0xffffffffffffffff
push 0x425203
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x9bcdffff
push 0xa30bffff
mov dword [esp + 0x18], ebx
call fcn.0040e2c0
add esp, 8
mov word [0x42b75e], ax
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x44]
push ebx
mov byte [esp + 0x48], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x42aa04
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x48]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4098c3
mov edi, dword [esp + 0x48]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42aa04
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x78], 1
call fcn.004043b0
add esp, 0xc
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx eax, byte [0x42b74d]
movsx ecx, word [0x42b762]
push eax
push ecx
call fcn.0040e2c0
mov dl, byte [esp + 0x80]
add esp, 8
lea ecx, [esp + 0x54]
mov word [0x42b75e], ax
push ebx
mov byte [esp + 0x58], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x42aa04
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x58]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40996d
mov edi, dword [esp + 0x58]
mov ecx, ebp
mov eax, ecx
mov esi, 0x42aa04
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x78], 4
call fcn.004043b0
add esp, 0xc
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx ecx, byte [0x42b74c]
movsx edx, word [0x42b75e]
mov eax, dword [0x42b784]
mov edi, dword [esp + 0x38]
add ecx, eax
push 0x3923ffff
push edx
mov dword [0x42b774], ecx
call fcn.0040e380
mov dword [0x42b774], eax
mov eax, dword [esp + 0x44]
add esp, 8
cmp edi, eax
je 0x409c91
mov ebp, 0xfffffffe
movsx eax, byte [0x42b748]
movsx ecx, word [0x42b754]
push eax
push ecx
call fcn.0040e380
mov dword [0x42b77c], eax
mov al, byte [0x42b774]
imul byte [0x42b74b]
movsx edx, word [0x42b754]
push 0x5e9dffff
push edx
xor bl, bl
mov byte [0x42b74a], al
call fcn.0040e290
push 0x55abffff
push 0x7f93ffff
mov word [0x42b760], ax
call fcn.0040e450
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov byte [0x42b750], al
add esp, 0x18
movsx ax, byte [0x42b748]
cmp esi, ecx
mov word [0x42b756], ax
je 0x409bce
add esi, 4
movsx eax, word [0x42b75c]
push 0x6f81ffff
push eax
call fcn.0040e380
movsx edx, byte [0x42b74b]
mov ecx, dword [0x42b780]
mov word [0x42b760], ax
push ecx
push edx
mov word [0x42b758], bp
call fcn.0040e340
mov cl, byte [0x42b74d]
mov byte [0x42b74b], al
mov al, byte [0x42b760]
add esp, 0x10
or al, cl
mov byte [0x42b74f], al
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jne 0x409ab4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ecx
mov ecx, dword [edi + 8]
push eax
push ecx
push 0
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
test eax, eax
je 0x409b65
movsx edx, word [0x42b756]
push edx
push 0xc48fffff
call fcn.0040e3c0
mov word [0x42b752], ax
push 0x5465ffff
movsx eax, word [0x42b758]
movsx edx, byte [0x42b748]
lea ecx, [eax*4]
push edx
sub ecx, eax
add esi, 0x10
neg ecx
shl ecx, 3
sub ecx, eax
shl ecx, 2
sub ecx, eax
shl ecx, 0x16
sub ecx, eax
mov dword [0x42b780], ecx
call fcn.0040e2c0
mov byte [0x42b74b], al
mov eax, dword [0x42b76c]
push 0xbb37ffff
push eax
call fcn.0040e2f0
movsx ecx, word [0x42b75c]
push 0x947dffff
push ecx
mov dword [0x42b774], eax
call fcn.0040e450
mov byte [0x42b748], al
mov eax, dword [esp + 0x4c]
lea edx, [esi - 4]
add esp, 0x20
cmp edx, eax
jne 0x409a59
jmp 0x409bc8
mov ax, word [0x42b762]
push 0x6abffff
movsx ecx, ax
imul ecx, ecx, 0xa385ffff
mov dword [0x42b76c], ecx
mov cx, word [0x42b75a]
mov dx, cx
mov bl, 1
and dx, ax
movsx eax, cx
push eax
mov word [0x42b756], dx
call fcn.0040e400
mov dword [0x42b784], eax
mov eax, dword [0x42b768]
or ecx, 0xffffffff
push 0xf029ffff
sub ecx, eax
push eax
mov word [0x42b760], cx
call fcn.0040e2f0
add esp, 0x10
mov word [0x42b752], ax
mov ax, word [0x42b756]
mov cl, byte [0x42b74d]
mov edx, dword [0x42b770]
and al, cl
push edx
mov byte [0x42b74c], al
movsx eax, byte [0x42b74a]
push eax
call fcn.0040e380
add esp, 8
mov byte [0x42b74f], al
test bl, bl
mov byte [0x42b749], 0xff
jne 0x409c13
mov ecx, dword [esp + 0x2c]
push edi
push 1
push ecx
lea ecx, [esp + 0x30]
call fcn.0040dd00
mov al, byte [0x42b750]
test al, al
je 0x409c30
cmp word [0x42b75c], 0
mov dword [0x42b788], 1
jne 0x409c3a
mov dword [0x42b788], 0
movsx eax, byte [0x42b74c]
mov dx, word [0x42b75e]
push eax
push 0x4d93ffff
mov word [0x42b762], dx
call fcn.0040e340
movsx ecx, byte [0x42b74d]
mov eax, ecx
add edi, 0x10
neg eax
shl eax, 4
sub eax, ecx
add esp, 8
shl eax, 3
sub eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x3c]
shl edx, 0x12
sub edx, ecx
cmp edi, eax
mov dword [0x42b778], edx
jne 0x4099dd
xor ebx, ebx
mov eax, dword [0x42b788]
push 0x1e2fffff
push eax
call fcn.0040e340
mov edx, dword [0x42b778]
mov byte [0x42b750], al
mov al, byte [0x42b74c]
xor ecx, ecx
test al, al
setne cl
push 0xc13bffff
push edx
mov byte [0x42b748], 0xff
mov dword [0x42b768], ecx
call fcn.0040e290
add esp, 0x10
mov byte [0x42b74b], al
mov al, byte [esp + 0x78]
lea ecx, [esp + 0x14]
push ebx
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [0x42b774]
mov esi, dword [esp + 0x28]
dec ecx
push 0x1cbbffff
push 0xb7adffff
mov byte [esp + 0x74], 7
mov word [0x42b752], cx
mov dword [esp + 0x80], esi
call fcn.0040e4a0
cmp word [0x42b75e], bx
push 0xf9fffff
push 0x950bffff
mov dword [0x42b770], eax
setne dl
mov byte [0x42b74a], dl
call fcn.0040e2f0
mov word [0x42b75a], ax
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp esi, eax
je 0x409f07
movsx eax, word [0x42b75c]
push 0x2fa7ffff
push eax
call fcn.0040e290
movsx cx, byte [0x42b74b]
mov ebp, dword [esp + 0x24]
add esp, 8
movsx dx, al
add ecx, edx
cmp ebp, ebx
mov byte [0x42b74a], al
mov word [0x42b756], cx
jbe 0x409df7
mov edi, 0x42aa04
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [eax]
sub ecx, ebp
cmp ecx, edi
ja 0x409db0
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x1c]
cmp edi, ebx
jbe 0x409df7
add ebp, edi
push ebx
push ebp
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x409df7
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edi
add eax, edx
mov edx, ecx
mov esi, 0x42aa04
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x42b76c]
mov edx, dword [0x42b784]
cmp ecx, ebx
push 0x8741ffff
setne cl
push edx
mov byte [0x42b748], cl
call fcn.0040e2c0
mov byte [0x42b749], al
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esi + 8]
add esp, 8
mov eax, dword [eax]
mov ebp, eax
cmp ecx, ebp
jae 0x409e33
mov ebp, ecx
sub eax, dword [esp + 0x1c]
cmp eax, ebp
ja 0x409e41
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp ebp, ebx
jbe 0x409e97
mov ecx, dword [esp + 0x1c]
push 0
lea ebx, [ecx + ebp]
lea ecx, [esp + 0x18]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x409e95
mov esi, dword [esi + 4]
test esi, esi
jne 0x409e6a
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, ebp
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov byte [eax + ebx], 0
xor ebx, ebx
movsx ecx, byte [0x42b749]
mov edx, dword [0x42b778]
push ecx
push edx
call fcn.0040e4a0
mov ecx, dword [0x42b784]
mov dword [0x42b774], eax
add esi, 0x10
inc eax
mov word [0x42b762], ax
push 0x3cb7ffff
movsx eax, word [0x42b75c]
or eax, ecx
push 0x713fffff
mov dword [esp + 0x88], esi
mov dword [0x42b768], eax
call fcn.0040e3c0
mov cl, byte [0x42b77c]
mov word [0x42b754], ax
mov eax, dword [esp + 0x3c]
add esp, 0x10
neg cl
cmp esi, eax
mov byte [0x42b74b], cl
jne 0x409d51
movsx edx, word [0x42b754]
imul edx, edx, 0xf313ffff
mov ebp, dword [esp + 0x74]
mov al, byte [esp + 0x14]
mov dword [0x42b768], edx
mov byte [ebp], al
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
mov ecx, ebp
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409f72
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409f69
cmp al, 0xff
je 0x409f69
dec al
mov byte [ecx], al
jmp 0x409f72
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x6c], 3
je 0x409fa4
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x409f8f
mov esi, dword [esp + 0x38]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 4
cmp esi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x6c], 0
je 0x409fdf
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x409fca
mov esi, dword [esp + 0x28]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x68]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret