Function at 0x418790
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 0x4187c2
shr bl, 1
jne 0x4187bd
mov ecx, dword [esp + 0xa8]
inc ebp
cmp ebp, ecx
mov bl, 0x80
jge 0x418a02
test byte [eax + ebp], bl
je 0x4187a7
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.00418d90
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.00418340
lea ecx, [esp + 0x80]
lea edx, [esp + 0x80]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00418340
mov eax, dword [esp + 0x40]
add esp, 0x1c
xor eax, esi
mov dword [esp + 0x24], eax
shr bl, 1
jne 0x418835
mov eax, dword [esp + 0xac]
inc ebp
cmp ebp, eax
mov bl, 0x80
jge 0x4188b1
mov ecx, dword [esp + 0xa8]
test byte [ecx + ebp], bl
je 0x418879
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.004183e0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00418470
add esp, 0x1c
jmp 0x418823
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.004183e0
lea edx, [esp + 0x6c]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00418470
add esp, 0x1c
jmp 0x418823
lea ecx, [esp + 0x28]
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00418340
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x64]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00418340
lea ecx, [esp + 0x70]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.00418340
lea ecx, [esp + 0xac]
lea edx, [esp + 0x64]
push ecx
push edx
call fcn.00418de0
mov edi, dword [esp + 0xd0]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x6c]
push eax
push ecx
push edi
call fcn.00418340
lea edx, [esp + 0x48]
lea eax, [esp + 0x78]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.00418340
mov esi, dword [esp + 0xf4]
add esp, 0x44
lea edx, [esp + 0x28]
push edi
push esi
push edx
call fcn.004182f0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1c]
push eax
push esi
push ecx
call fcn.004182f0
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0xa4]
push eax
push ecx
call fcn.00418340
push esi
lea edx, [esp + 0x68]
push esi
push edx
call fcn.00418340
lea eax, [esp + 0x70]
lea ebx, [esi + 0x18]
push eax
lea ecx, [esp + 0x74]
push ebx
push ecx
call fcn.004182f0
lea edx, [esp + 0xc4]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0xc8]
push eax
push ecx
call fcn.004182f0
add esp, 0x48
lea edx, [esp + 0x88]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00418340
lea edx, [esp + 0x94]
push esi
push edx
call fcn.00418de0
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x54]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
call fcn.00418340
lea eax, [esp + 0x78]
add edi, 0x18
push eax
push ebx
push edi
call fcn.004182f0
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov esi, dword [esp + 0xa0]
push esi
call fcn.00418d90
add esi, 0x18
push esi
call fcn.00418d90
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x90
ret