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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x90
mov cl, byte [eax]
push ebx
push ebp
mov bl, 0x80
xor ebp, ebp
push esi
test bl, cl
jne 0x7881a2
shr bl, 1
jne 0x78819d
mov ecx, dword [esp + 0xa8]
inc ebp
cmp ebp, ecx
mov bl, 0x80
jge 0x7883e2
test byte [eax + ebp], bl
je 0x788187
mov esi, dword [esp + 0xac]
push edi
mov ecx, 6
lea edi, [esp + 0x28]
lea eax, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00788770
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x78]
mov esi, 1
push edx
push eax
mov dword [esp + 0x7c], esi
call fcn.00787d20
lea ecx, [esp + 0x80]
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00787d20
mov eax, dword [esp + 0x40]
add esp, 0x1c
xor eax, esi
mov dword [esp + 0x24], eax
shr bl, 1
jne 0x788215
mov eax, dword [esp + 0xac]
inc ebp
cmp ebp, eax
mov bl, 0x80
jge 0x788291
mov ecx, dword [esp + 0xa8]
test byte [ecx + ebp], bl
je 0x788259
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00787dc0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00787e50
add esp, 0x1c
jmp 0x788203
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00787dc0
lea edx, [esp + 0x6c]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00787e50
add esp, 0x1c
jmp 0x788203
lea ecx, [esp + 0x28]
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00787d20
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00787d20
lea ecx, [esp + 0x70]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.00787d20
lea ecx, [esp + 0xac]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.007887c0
mov edi, dword [esp + 0xd0]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
call fcn.00787d20
lea edx, [esp + 0x48]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.00787d20
mov esi, dword [esp + 0xf4]
add esp, 0x44
lea edx, [esp + 0x28]
push edi
push esi
push edx
call fcn.00787cd0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push esi
push ecx
call fcn.00787cd0
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.00787d20
push esi
lea edx, [esp + 0x68]
push esi
push edx
call fcn.00787d20
lea eax, [esp + 0x70]
lea ebx, [esi + 0x18]
push eax
lea ecx, [esp + 0x74]
push ebx
push ecx
call fcn.00787cd0
lea edx, [esp + 0xc4]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0xc8]
push eax
push ecx
call fcn.00787cd0
add esp, 0x48
lea edx, [esp + 0x88]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00787d20
lea edx, [esp + 0x94]
push esi
push edx
call fcn.007887c0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.00787d20
lea eax, [esp + 0x78]
add edi, 0x18
push eax
push ebx
push edi
call fcn.00787cd0
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov esi, dword [esp + 0xa0]
push esi
call fcn.00788770
add esi, 0x18
push esi
call fcn.00788770
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x90
ret