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

Disassembly:
push 0xffffffffffffffff
push 0x426e42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x64]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
cmp eax, ebx
mov dword [esp + 0x10], ebp
jne 0x40639f
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
mov cl, byte [esp + 0x6c]
push esi
push edi
mov byte [esp + 0x34], cl
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x6c], ebx
push edx
push ebx
push 0x20
push eax
mov dword [esp + 0x84], ebx
call fcn.00416a10
add esp, 0x10
cmp eax, ebx
jle 0x406860
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
mov esi, dword [eax + ecx + 4]
cmp esi, ebx
jne 0x4063fd
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]
push 4
push 0x42e980
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40647a
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x42e974
push esi
call edi
add esp, 8
test eax, eax
je 0x40646c
push 0x42e980
push esi
call edi
add esp, 8
test eax, eax
je 0x40646c
add esi, 4
push 0x3a
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40645e
lea edx, [edi + 1]
mov ecx, ebp
push edx
push esi
mov byte [edi], 0
call fcn.0041f4f0
mov byte [edi], 0x3a
jmp 0x40683e
push ebx
push esi
mov ecx, ebp
call fcn.0041f4f0
jmp 0x40683e
push ebx
push ebx
mov ecx, ebp
call fcn.0041f4f0
jmp 0x40683e
push 7
push 0x42e96c
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x4064b8
add esi, 7
push 0x42e964
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4064ac
mov byte [ebp + 0x129], al
jmp 0x40683e
mov byte [ebp + 0x129], 1
jmp 0x40683e
push 5
push 0x42ea10
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x406537
add esi, 5
push 0x42ea04
push esi
xor edi, edi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4064f1
mov edi, 1
mov dword [ebp + 0x104], edi
jmp 0x40683e
push 0x42e9f4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x406514
mov edi, 2
mov dword [ebp + 0x104], edi
jmp 0x40683e
push 0x42e9e4
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x40652c
mov edi, 4
mov dword [ebp + 0x104], edi
jmp 0x40683e
push 4
push 0x42e9dc
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x406846
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push 0x42e9d0
push esi
call edi
add esp, 8
test eax, eax
je 0x40682e
push 0x42e9dc
push esi
call edi
add esp, 8
test eax, eax
je 0x40682e
mov al, byte [esp + 0x74]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x24]
add esi, 4
push ecx
push ebx
push 0x2c
push esi
mov byte [esp + 0x7c], 1
call fcn.00416a10
add esp, 0x10
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x4067c8
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
cmp eax, ebx
jne 0x4065c6
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]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x42ea04
push eax
call esi
add esp, 8
test eax, eax
je 0x4065e5
mov dword [esp + 0x10], 1
jmp 0x406635
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4065f5
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 0x42e9f4
push eax
call esi
add esp, 8
test eax, eax
je 0x40660e
mov dword [esp + 0x10], 2
jmp 0x406635
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x40661e
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 0x42e9e4
push eax
call esi
add esp, 8
test eax, eax
je 0x406635
mov dword [esp + 0x10], 4
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x24]
cmp eax, ebx
jne 0x406645
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 eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x74], eax
jg 0x4066a8
mov eax, dword [esp + 0x28]
mov edi, 0x430390
or ecx, 0xffffffff
xor esi, esi
lea ebx, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
mov dword [esp + 0x18], esi
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 0x4066aa
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x430390
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 [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
xor esi, esi
mov al, byte [esp + 0x74]
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], 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 cl, byte [esp + 0x74]
push esi
mov byte [esp + 0x48], cl
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 2
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 eax, dword [esp + 0x20]
mov byte [esp + 0x6c], 3
cmp eax, 5
jl 0x40671b
mov edx, 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 [esp + 0x28]
add ecx, 0x30
mov eax, dword [edx]
push eax
push esi
push ecx
lea ecx, [esp + 0x60]
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 edx, 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 [esp + 0x28]
add ecx, 0x40
mov eax, dword [edx]
push eax
push esi
push ecx
lea ecx, [esp + 0x50]
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 edx, dword [esp + 0x48]
mov edi, 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]
cmp edx, esi
jne 0x40672b
mov edx, edi
mov ecx, dword [esp + 0x58]
cmp ecx, esi
jne 0x406735
mov ecx, edi
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
cmp eax, esi
jne 0x406742
mov eax, edi
push edx
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push edx
call fcn.0041f840
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], 1
cmp eax, esi
je 0x406785
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40677c
cmp al, 0xff
je 0x40677c
dec al
mov byte [ecx], al
jmp 0x406785
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], esi
cmp eax, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x4067b6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4067ad
cmp al, 0xff
je 0x4067ad
dec al
mov byte [ecx], al
jmp 0x4067b6
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, eax
mov byte [esp + 0x6c], 0
mov edi, eax
je 0x406817
add esi, 4
mov eax, dword [esi]
cmp eax, ebx
je 0x406801
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4067f8
cmp al, 0xff
je 0x4067f8
dec al
mov byte [ecx], al
jmp 0x406801
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea eax, [esi - 4]
cmp eax, edi
jne 0x4067de
mov esi, dword [esp + 0x28]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jmp 0x406846
push ebx
push ebx
push ebx
push 0x430390
push ebx
mov ecx, ebp
call fcn.0041f840
mov dword [esp + 0x74], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add ecx, 0x10
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x4063e1
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, ecx
mov edi, ecx
je 0x4068aa
lea esi, [eax + 4]
mov eax, dword [esi]
cmp eax, ebx
je 0x406894
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40688b
cmp al, 0xff
je 0x40688b
dec al
mov byte [ecx], al
jmp 0x406894
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, edi
jne 0x406871
mov eax, dword [esp + 0x38]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x78]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 4