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

Disassembly:
sub esp, 0x7c
mov eax, dword [ecx + 0x42060]
push ebx
push ebp
mov ebp, dword [ecx + 0x4205c]
push esi
cmp ebp, eax
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebp
je 0x10006250
mov esi, dword [ecx + 0x4200c]
mov eax, dword [ecx + 0x42010]
cmp esi, eax
je 0x10006236
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 4], ecx
jne 0x10005df5
cmp dword [ebp + 8], 4
je 0x10005e04
add esi, 0x13b4
cmp esi, eax
jne 0x10005dea
jmp 0x10006236
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov dword [esi + 0x122c], 1
mov eax, dword [ebp + 4]
push 0x80
mov dword [esi + 0x1230], eax
lea eax, [esi + 0x1234]
push 0x10038624
push eax
mov dword [esp + 0x24], eax
call ebx
lea edi, [esi + 0x12b4]
push 0x80
push 0x10038628
push edi
mov dword [esp + 0x3c], edi
call ebx
add esi, 0x1334
push 0x80
push 0x1003862c
push esi
mov dword [esp + 0x4c], esi
call ebx
mov eax, dword [ebp + 0x390]
add esp, 0x24
cmp eax, 5
je 0x10005eb9
cmp eax, 4
je 0x10005eb9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add ecx, 0x2a8
push 0x80
push ecx
push edx
call ebx
mov eax, dword [esp + 0x20]
push 0x80
add eax, 0xa8
push eax
push edi
call ebx
mov ecx, dword [esp + 0x2c]
push 0x80
add ecx, 0x328
push ecx
push esi
call ebx
add esp, 0x24
jmp 0x10006236
mov edx, dword [0x100385f0]
xor eax, eax
mov edx, dword [edx + 0x20e0]
mov esi, dword [edx + 0x18]
test esi, esi
jbe 0x10006236
lea ecx, [edx + 0x30]
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], edi
jne 0x10005ee4
mov edi, dword [ecx]
cmp edi, dword [ebp + 4]
je 0x10005ef4
inc eax
add ecx, 0x324
cmp eax, esi
jb 0x10005ed5
jmp 0x10006236
lea ecx, [eax + eax*4]
push 0
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
mov cl, byte [esp + 0x17]
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
lea ebp, [edx + eax*4]
lea esi, [ebp + 0x1c4]
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, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x28], edi
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 0x10005f5e
mov ecx, edi
mov edi, dword [esp + 0x30]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
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 cl, byte [esp + 0x2c]
sub esp, 0x10
mov esi, esp
push 0
mov byte [esi], cl
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_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push 0
push ecx
mov ecx, esi
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_]
lea edx, [esp + 0x4c]
push edx
call fcn.10007e50
mov eax, dword [esp + 0x54]
add esp, 0x14
test eax, eax
jne 0x10005fa5
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 0x80
push eax
mov eax, dword [esp + 0x20]
push eax
call ebx
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov byte [esp + 0x5c], cl
lea ecx, [esp + 0x5c]
push 0
lea esi, [ebp + 0x244]
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, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x60]
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 0x1000600d
mov edi, dword [esp + 0x60]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x60]
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 eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x5c]
mov ecx, dword [eax]
push ecx
push 0
push edx
lea ecx, [esp + 0x38]
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_]
push 1
lea ecx, [esp + 0x60]
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 al, byte [esp + 0x2c]
sub esp, 0x10
mov esi, esp
push 0
mov ecx, esi
mov byte [esi], 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 [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x3c]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
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_]
lea ecx, [esp + 0x8c]
push ecx
call fcn.10007e50
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 0x14
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x48]
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_]
push 1
lea ecx, [esp + 0x80]
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 + 0x40]
test eax, eax
jne 0x100060a1
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 edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
push 0x80
push eax
push edx
call ebx
mov al, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x4c]
lea esi, [ebp + 0x2c4]
push 0
mov byte [esp + 0x50], 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, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x50]
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 0x10006110
mov edi, dword [esp + 0x50]
mov ecx, ebp
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 + 0x50]
mov dword [esp + 0x54], ebp
mov byte [eax + ebp], 0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor edi, edi
lea eax, [esp + 0x4c]
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
push edx
push edi
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_]
push 1
lea ecx, [esp + 0x50]
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 + 0x2c]
sub esp, 0x10
mov esi, esp
push edi
mov byte [esi], cl
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_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x3c]
mov eax, dword [edx]
push eax
push edi
push ecx
mov ecx, esi
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_]
lea edx, [esp + 0x7c]
push edx
call fcn.10007e50
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esp, 0x14
mov edx, dword [ecx]
lea ecx, [esp + 0x3c]
push edx
push edi
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 eax, dword [esp + 0x70]
cmp eax, edi
je 0x100061a9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x100061a0
cmp al, 0xff
je 0x100061a0
dec al
mov byte [ecx], al
jmp 0x100061a9
push ecx
call fcn.1002eb22
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], edi
cmp eax, edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
jne 0x100061c2
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 0x80
push eax
mov eax, dword [esp + 0x30]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
add esp, 0xc
cmp ecx, edi
je 0x100061f6
mov al, byte [ecx - 1]
test al, al
je 0x100061ec
cmp al, 0xff
je 0x100061ec
dec al
mov byte [ecx - 1], al
jmp 0x100061f6
dec ecx
push ecx
call fcn.1002eb22
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], edi
cmp ecx, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
je 0x10006226
mov al, byte [ecx - 1]
test al, al
je 0x1000621c
cmp al, 0xff
je 0x1000621c
dec al
mov byte [ecx - 1], al
jmp 0x10006226
dec ecx
push ecx
call fcn.1002eb22
add esp, 4
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x14]
add ebp, 0x398
mov dword [esp + 0x1c], ebp
cmp ebp, dword [ecx + 0x42060]
jne 0x10005dd3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret