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

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x30]
cmp edi, 9
jle 0x65210636
mov eax, dword [esp + 0x10]
push 0x1a4b
push eax
call fcn.652659d0
add esp, 8
xor eax, eax
pop edi
add esp, 8
ret
push ebx
push esi
push 0x7c
call fcn.65244110
mov esi, eax
xor ebx, ebx
add esp, 4
xor eax, eax
cmp esi, ebx
je 0x6521084e
cmp edi, ebx
setl al
cmp eax, ebx
mov dword [esi + 0x54], eax
je 0x6521069d
mov dword [esi + 0x58], 0x6520f3c0
mov dword [esi + 0x5c], fcn.65207b60
mov dword [esi + 0x60], 0x6520f3f0
mov dword [esi + 0x64], 0x6520f460
mov dword [esi + 0x68], 0x6520f540
mov dword [esi + 0x6c], 0x6520f670
mov dword [esi + 0x70], 0x6520f6a0
mov dword [esi + 0x74], 0x6520f770
mov dword [esi + 0x78], 0x6520f8b0
jmp 0x652106dc
mov dword [esi + 0x58], 0x6520ea00
mov dword [esi + 0x5c], fcn.65207b60
mov dword [esi + 0x60], 0x6520ea60
mov dword [esi + 0x64], 0x6520ead0
mov dword [esi + 0x68], 0x6520ebb0
mov dword [esi + 0x6c], 0x6520ec50
mov dword [esi + 0x70], 0x6520eca0
mov dword [esi + 0x74], 0x6520ed70
mov dword [esi + 0x78], 0x6520eea0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x1c]
push eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 8], ebx
call fcn.65244110
add esp, 4
cmp eax, ebx
mov dword [esi + 0x24], eax
jne 0x65210726
push esi
call fcn.652440f0
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
cmp dword [esp + 0x28], ebx
push ebp
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jbe 0x652107d0
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov edi, eax
test edi, edi
je 0x652107f3
push edi
call fcn.65206e40
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x652107f3
mov eax, dword [esp + 0x38]
push ebp
push eax
push esi
mov eax, ebx
call fcn.6520fd40
add esp, 0xc
test eax, eax
je 0x6521082b
push eax
push esi
call fcn.652665e0
mov edx, dword [edi]
add esp, 8
push 2
lea eax, [esp + 0x40]
push eax
push str.suppress_dialogs
mov ecx, edi
call dword [edx + 4]
mov al, byte [esp + 0x3c]
test al, al
jne 0x652107b8
mov edx, dword [edi]
push 0x6528b5f0
push str.suppress_dialogs
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
inc eax
add ebx, 0x58
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x65210742
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x652107fb
mov ecx, dword [esi + 0x1c]
push 0x40
lea eax, [esi + 0x50]
push eax
mov eax, dword [esi + 0x24]
push eax
push ecx
call dword [esi + 0x58]
add esp, 0x10
test eax, eax
mov dword [esi + 0x20], eax
jne 0x652107fb
mov dword [esp + 0x10], 1
lea edx, [esi + 0x2c]
push edx
call fcn.65265d90
lea eax, [esi + 0x38]
push eax
call fcn.65265d90
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
pop ebp
je 0x65210836
push esi
call fcn.6520fed0
add esp, 4
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
push ebp
call fcn.65206e80
add esp, 4
jmp 0x652107f3
mov ecx, dword [esp + 0x3c]
lea eax, [esi + 0x44]
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov dword [esi + 0x28], ecx
mov dword [esi + 0x4c], 0
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 8
ret