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

Disassembly:
push 0xffffffffffffffff
push 0x5236d13
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
mov esi, ecx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x5b
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0xac], 0
call fcn.05012260
add esp, 0xc
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [esp + 0x38], edi
jne 0x5007fd8
call ebx
mov edx, dword [esp + 0x2c]
push edx
mov ecx, esi
call dword [0x523a2b0]
cmp edi, 1
mov dword [esp + 0x14], 1
jle 0x5008232
mov dword [esp + 0x18], 0x1c
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x5008021
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x54]
add ecx, edx
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, 0xfffffffc
je 0x5008082
test esi, esi
jne 0x5008046
call ebx
mov ebp, dword [esi + 0x18]
lea eax, [esi + 4]
cmp ebp, 0x10
jb 0x5008055
mov ecx, dword [eax]
jmp 0x5008057
mov ecx, eax
mov ebx, dword [esi + 0x14]
lea edx, [edi - 1]
add ebx, ecx
cmp edx, ebx
ja 0x500806e
cmp ebp, 0x10
jb 0x500806a
mov eax, dword [eax]
cmp edx, eax
jae 0x5008078
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
jmp 0x500807e
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x1c]
dec edi
cmp esi, 0xfffffffc
je 0x50080a7
test esi, esi
jne 0x500808e
call ebx
cmp dword [esi + 0x18], 0x10
jb 0x5008099
mov eax, dword [esi + 4]
jmp 0x500809c
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x50080a7
call ebx
cmp byte [edi], 0x5d
jne 0x50082b5
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x50080d3
call ebx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
add ecx, edx
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, 0xfffffffc
je 0x5008134
test esi, esi
jne 0x50080f8
call ebx
mov ebp, dword [esi + 0x18]
lea eax, [esi + 4]
cmp ebp, 0x10
jb 0x5008107
mov ecx, dword [eax]
jmp 0x5008109
mov ecx, eax
mov ebx, dword [esi + 0x14]
lea edx, [edi - 1]
add ebx, ecx
cmp edx, ebx
ja 0x5008120
cmp ebp, 0x10
jb 0x500811c
mov eax, dword [eax]
cmp edx, eax
jae 0x500812a
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
call ebx
jmp 0x5008130
mov ebx, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esp + 0x1c]
dec edi
cmp esi, 0xfffffffc
je 0x5008159
test esi, esi
jne 0x5008140
call ebx
cmp dword [esi + 0x18], 0x10
jb 0x500814b
mov eax, dword [esi + 4]
jmp 0x500814e
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
add ecx, eax
cmp edi, ecx
jb 0x5008159
call ebx
mov byte [edi], 0
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x500817f
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
lea eax, [edx + ecx]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x90], 0x10
mov eax, dword [esp + 0x7c]
jae 0x50081af
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x50081c8
xor edx, edx
jmp 0x50081d0
mov edx, dword [ebp + 0x14]
sub edx, ecx
sar edx, 2
mov esi, dword [ebp + 0x10]
mov edi, esi
sub edi, ecx
sar edi, 2
cmp edi, edx
jae 0x50081e8
mov dword [esi], eax
add esi, 4
mov dword [ebp + 0x10], esi
jmp 0x5008204
cmp ecx, esi
jbe 0x50081ee
call ebx
mov eax, dword [ebp]
push esi
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
mov eax, ebp
call fcn.05009bc0
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 0x1c
inc eax
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jl 0x5007ffe
mov edi, dword [esp + 0x38]
mov dword [esp + 0xa0], 5
mov esi, dword [esp + 0x2c]
xor eax, eax
cmp esi, eax
je 0x5008272
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x5008263
nop
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x5008250
mov esi, dword [esp + 0x2c]
push esi
call sub.mfc90.dll_Ordinal_800
mov edi, dword [esp + 0x3c]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0520b902
add esp, 0x90
ret
mov edx, dword [esp + 0x3c]
push edx
push str.Error:_incorrect_format___s__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
mov dword [esp + 0xa0], 3
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
je 0x500830c
mov edi, dword [esp + 0x30]
cmp esi, edi
je 0x5008303
nop
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x50082f0
mov esi, dword [esp + 0x2c]
push esi
call sub.mfc90.dll_Ordinal_800
add esp, 4
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call sub.mfc90.dll_Ordinal_800
add esp, 4
or eax, 0xffffffff
jmp 0x500828d