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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push edi
push esi
push ebx
push 0x300
push 0
lea eax, [ebp - 0x344]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x300
push 0
lea eax, [ebp - 0x648]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
lea eax, [ebp - 0x660]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x648]
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x344]
mov dword [ebp - 0x348], eax
lea esi, [ebp - 0x30]
push esi
call sub.ole32.dll_CoCreateGuid
add esi, 0x10
push esi
call sub.ole32.dll_CoCreateGuid
push str.KERNEL32.dll
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
add esi, dword [esi + 0x3c]
lea esi, [esi + 0x78]
mov esi, dword [esi]
add esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x38], eax
mov ebx, dword [esi + 0x24]
add ebx, dword [ebp - 0x34]
mov edi, dword [esi + 0x20]
add edi, dword [ebp - 0x34]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0x28
push str.KERNEL32.dll
call sub.kernel32.dll_lstrlenA
add dword [ebp - 0x44], eax
add dword [ebp - 0x44], 0xa
push str.KERNEL32.dll
push dword [ebp - 0x348]
call sub.kernel32.dll_lstrcpyA
push str.KERNEL32.dll
call sub.kernel32.dll_lstrlenA
add dword [ebp - 0x348], eax
add dword [ebp - 0x348], 2
lea ecx, [ebp - 0x30]
add ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
xor edx, edx
mov ecx, dword [ebp - 0x38]
div ecx
shl edx, 2
mov ecx, edx
add edx, edi
add ecx, ebx
mov esi, dword [edx]
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x348]
mov edx, dword [ebp - 0x64c]
mov dword [edx], eax
push eax
lea eax, [ebp - 0x344]
sub dword [edx], eax
pop eax
add dword [ebp - 0x64c], 4
movzx ecx, word [ecx + 2]
mov word [eax], cx
add dword [ebp - 0x348], 2
push esi
push dword [ebp - 0x348]
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 0x3c], eax
add dword [ebp - 0x348], eax
add dword [ebp - 0x348], 2
add dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x44], eax
inc dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x140
jbe 0x40308c
jmp 0x403091
jmp 0x403008
inc dword [ebp - 0x40]
lea edi, [ebp - 0x648]
mov ebx, dword [ebp - 0x40]
shl ebx, 3
add ebx, 0x28
mov esi, dword [ebp - 0x40]
dec esi
jmp 0x4030af
add dword [edi], ebx
add edi, 4
dec esi
or esi, esi
jne 0x4030a9
lea edi, [ebp - 0x660]
mov eax, 0x28
mov dword [edi], eax
mov ebx, dword [ebp - 0x40]
shl ebx, 2
add eax, ebx
mov dword [edi + 0x10], eax
add eax, ebx
mov dword [edi + 0xc], eax
mov edi, dword [ebp + 8]
push 0x14
lea eax, [ebp - 0x660]
push eax
push edi
call fcn.0040d76f
add edi, 0x14
add edi, 0x14
mov ebx, dword [ebp - 0x40]
shl ebx, 2
push ebx
lea eax, [ebp - 0x648]
push eax
push edi
call fcn.0040d76f
add edi, ebx
push ebx
lea eax, [ebp - 0x648]
push eax
push edi
call fcn.0040d76f
add edi, ebx
mov ebx, dword [ebp - 0x348]
lea eax, [ebp - 0x344]
sub ebx, eax
push ebx
lea eax, [ebp - 0x344]
push eax
push edi
call fcn.0040d76f
add edi, ebx
mov ecx, dword [ebp + 0xc]
sub edi, dword [ebp + 8]
mov dword [ecx], edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
lea ecx, [edx + esi]
jmp 0x403146
add dword [ecx], ebx
add ecx, 4
cmp dword [ecx], 0
jne 0x403141
mov edx, dword [esi + 0x10]
lea ecx, [edx + esi]
jmp 0x403158
add dword [ecx], ebx
add ecx, 4
cmp dword [ecx], 0
jne 0x403153
add dword [esi + 0x10], ebx
add dword [esi + 0xc], ebx
add dword [esi], ebx
pop ebx
pop esi
pop edi
leave
ret 0xc