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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
test byte [esi + 0x70], 8
je 0x30129967
movzx eax, word [esi + 0x3e]
movzx ecx, word [esi + 0x3c]
add eax, ecx
test eax, eax
mov dword [ebp - 4], eax
jle 0x301299dc
movzx eax, word [esi + 0x40]
movzx ebx, word [esi + 0x42]
add ebx, eax
lea eax, [esi + 0x10]
push eax
push ebx
push dword [edi + 0x48]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
lea eax, [ebx + ebx]
push eax
push 0
push dword [esi + 0x10]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x14]
push eax
push ebx
push dword [edi + 0x84]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, ebx
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
mov dword [ebp - 8], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x18]
push eax
push ebx
push dword [edi + 0x7c]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push eax
push dword [esi + 0x18]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x1c]
push eax
push ebx
push dword [edi + 0x78]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push eax
push dword [esi + 0x1c]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x20]
push eax
push ebx
push dword [edi + 0x80]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push ebx
push eax
push dword [esi + 0x20]
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [edi + 0xc0], 0
je 0x301298ab
lea eax, [esi + 0x24]
push eax
push ebx
push dword [edi + 0x4c]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push eax
push dword [esi + 0x24]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x28]
push eax
push ebx
push dword [edi + 0x50]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, ebx
shl eax, 3
push eax
push 0
push dword [esi + 0x28]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 4]
push dword [edi + 0x58]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0
push dword [esi + 0x2c]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x30]
push eax
push dword [ebp - 4]
push dword [edi + 0x5c]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0
push dword [esi + 0x30]
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x34]
push eax
push ebx
push dword [edi + 0x60]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push eax
push dword [esi + 0x34]
call sub.MSVCR80.dll_memset
mov ebx, dword [ebp - 4]
add esp, 0xc
add esi, 0x38
push esi
push ebx
push dword [edi + 0x74]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, ebx
shl eax, 2
push eax
jmp 0x301299d0
movzx ebx, word [esi + 0x22]
movzx eax, word [esi + 0x20]
add ebx, eax
test ebx, ebx
jle 0x301299dc
lea eax, [esi + 0x14]
push eax
push ebx
push dword [edi + 0x7c]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
mov eax, ebx
shl eax, 2
push eax
push 0
push dword [esi + 0x14]
mov dword [ebp - 8], eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esi + 0x18]
push eax
push ebx
push dword [edi + 0x78]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push eax
push dword [esi + 0x18]
call sub.MSVCR80.dll_memset
add esp, 0xc
add esi, 0x1c
push esi
push ebx
push dword [edi + 0x74]
call fcn.3012d0a0
test eax, eax
jne 0x301299de
push dword [ebp - 8]
push 0
push dword [esi]
call sub.MSVCR80.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebx
leave
ret