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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ba1d6
push eax
mov dword fs:[0], esp
sub esp, 0x490
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov esi, ecx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x2c]
push ecx
push edx
push str.object
push 0
mov ecx, edi
call eax
cmp dword [ebp + 0x14], 0
je 0x40883d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, eax
inc eax
imul ecx, edx
imul eax, edx
mov edx, dword [esi + 0x28]
test edx, edx
je 0x40870a
cmp eax, edx
jle 0x40865c
mov eax, edx
cmp ecx, eax
jge 0x40883d
sub eax, ecx
lea ebx, [ecx + 1]
mov dword [esp + 0x10], eax
lea ecx, [ecx]
lea ecx, [esp + 0x88]
push 0x10
mov dword [esp + 0x68], ecx
mov dword [esp + 0x3c], 6
mov dword [esp + 0x34], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp + 0x18], eax
mov dword [eax + 8], 1
mov ecx, dword [esp + 0x18]
mov eax, ebx
cdq
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax + 4], edx
mov ecx, dword [esi]
push 1
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x70]
push edx
push esi
call eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [edi]
add esp, 4
lea edx, [esp + 0x60]
push edx
push 0xa
lea eax, [esp + 0x78]
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__itoa]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
add esp, 0xc
push eax
call edx
mov edi, dword [ebp + 8]
inc ebx
dec dword [esp + 0x10]
jne 0x408670
jmp 0x40883d
mov edx, dword [esi + 0xc]
cmp eax, edx
jle 0x408713
mov eax, edx
cmp ecx, eax
jge 0x40883d
lea edx, [ecx + ecx*8]
add edx, edx
add edx, edx
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
jmp 0x408734
mov edx, dword [esp + 0x10]
mov edi, dword [esi + 8]
lea eax, [esp + 0x290]
push 0x10
add edi, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], 6
mov dword [esp + 0x54], esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [esp + 0x1c], eax
add esp, 4
xor ebx, ebx
mov dword [eax + 8], ebx
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x18]
mov dword [edx], ecx
mov eax, dword [esi]
push 1
lea ecx, [esp + 0x1c]
push ecx
push ebx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push esi
call edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [edi + 0x20]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x2c], bl
push 0xffffffffffffffff
mov dword [esp + 0x4ac], ebx
push edi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.CStringUTF8FromWChar.0
call fcn.0049b900
add esp, 0xc
mov dword [esp + 0x4a4], 1
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x4087d4
mov eax, dword [edi]
cmp eax, ebx
jne 0x4087d9
mov eax, 0x4bbf48
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [ebp + 8]
push eax
call edx
mov dword [esp + 0x4a4], 0xffffffff
mov dword [esp + 0x20], vtable.CKuStringT_char__class_CKuStringUtilA_.0
cmp edi, ebx
je 0x40882b
mov eax, dword [edi + 0x10]
dec eax
mov dword [edi + 0x10], eax
jne 0x40882b
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x408821
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
add dword [esp + 0x10], 0x24
dec dword [esp + 0x1c]
jne 0x408730
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10