Function at 0x10002640
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x1003e009
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
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_]
movsx ecx, word [0x10047bb0]
movsx edx, word [0x10047baa]
mov eax, dword [0x10047bc8]
and ecx, edx
add eax, ecx
mov dword [esp + 0x2c], edi
mov dword [0x10047bc8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 0x10]
mov dword [0x10047be0], eax
call fcn.10001460
movsx eax, word [0x10047baa]
push eax
push eax
call fcn.10007830
mov ebp, dword [esp + 0x40]
add word [0x10047bae], ax
add esp, 8
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x100026d1
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
lea ecx, [esp + 0x14]
call fcn.10001680
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x5cb5ffff
push 0xf469ffff
mov ebx, eax
call fcn.100076b0
mov ecx, dword [0x10047bc4]
mov dl, byte [0x10047ba5]
add ecx, eax
xor eax, eax
test dl, dl
mov dword [0x10047bc4], ecx
mov ecx, dword [0x10047be0]
setne al
add ecx, eax
push 0x639bffff
movsx eax, word [0x10047bbc]
push eax
mov dword [0x10047be0], ecx
call fcn.100076b0
mov byte [0x10047ba3], al
mov eax, dword [ebp + 4]
add esp, 0x14
cmp eax, edi
jne 0x10002743
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 ebx
push eax
lea ecx, [esp + 0x18]
call fcn.100021b0
cmp dword [0x10047bc8], edi
jne 0x10002763
cmp word [0x10047bb4], di
jne 0x10002763
xor eax, eax
jmp 0x10002768
mov eax, 1
mov ecx, dword [0x10047bc8]
push 0x688bffff
add ecx, eax
inc word [0x10047bb4]
mov dword [0x10047bc8], ecx
movsx ecx, byte [0x10047ba4]
push ecx
call fcn.10007650
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 word [0x10047bb0], ax
add esp, 8
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
sub eax, edx
cmp eax, esi
ja 0x100027b1
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp esi, edi
jbe 0x100027f7
mov ecx, dword [esp + 0x1c]
push edi
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
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 0x100027f7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, ebx
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 dword [esp + 0x1c], ebp
xor edi, edi
mov byte [eax + ebp], 0
push ebx
call fcn.1002cda0
add esp, 4
mov byte [0x10047ba9], 1
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_IsCharAlphaNumericA]
mov cl, byte [0x10047ba1]
mov esi, dword [esp + 0x34]
add cl, al
mov byte [0x10047ba1], cl
mov cl, byte [esp + 0x14]
mov byte [esi], cl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
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 + 0x14]
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_]
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x1000286b
mov al, byte [ecx - 1]
test al, al
je 0x10002861
cmp al, 0xff
je 0x10002861
dec al
mov byte [ecx - 1], al
jmp 0x1000286b
dec ecx
push ecx
call fcn.1002cda0
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret