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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x18], eax
jg 0x3012b2e0
imul eax, eax, 0x1c
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [eax + ecx*4]
mov esi, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ebx
call fcn.301299e2
or word [esi + 0x70], 0x11
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x68], eax
mov eax, dword [ebx + 0x7c]
xor edx, edx
mov dword [esi + 0x6c], eax
mov word [esi + 0x74], dx
mov word [esi + 0x76], dx
movzx eax, word [ebx + 0x86]
movzx ecx, word [ebx + 0x84]
cmp ax, cx
jbe 0x3012b00b
sub eax, ecx
mov word [esi + 0x76], ax
mov edi, dword [ebp - 0x14]
mov word [esi + 0x78], dx
mov ax, word [ebx + 0x8c]
sub ax, word [ebx + 0x8a]
mov word [esi + 0x7e], dx
mov word [esi + 0x7a], ax
mov ax, word [esi + 0x76]
mov word [esi + 0x7c], ax
mov ax, word [ebx + 0x90]
mov word [esi + 0x82], ax
movzx eax, word [ebx + 0x84]
movzx ebx, word [ebx + 0x86]
mov esi, dword [ebp + 8]
sub ebx, eax
call fcn.301296da
test eax, eax
jne 0x3012b2e2
mov ebx, dword [ebp - 0x24]
movzx ecx, word [ebx + 0x84]
movzx edx, word [ebx + 0x8a]
movzx edi, word [ebx + 0x86]
movzx eax, word [ebx + 0x8c]
sub edi, ecx
sub eax, edx
test edi, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], eax
jle 0x3012b2cd
mov esi, dword [ebp - 0x14]
lea eax, [edi + edi]
push eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0xc]
add ecx, ecx
add eax, ecx
push eax
push dword [esi + 4]
mov dword [ebp - 0x1c], ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x10]
shl eax, 2
shl edi, 2
push edi
add ecx, eax
push ecx
push dword [esi + 0xc]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 4]
mov eax, dword [eax]
add esp, 0x18
cmp dword [eax + 0xc0], 0
je 0x3012b112
mov eax, dword [ebx + 8]
push dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
push eax
push dword [esi + 8]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
test byte [ebx + 0x80], 8
jne 0x3012b112
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x10]
push edi
push eax
push dword [esi + 0x10]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
movzx eax, word [ebx + 0x80]
test al, 0x10
jne 0x3012b2cd
cmp byte [ebx + 0x9a], 0xa
je 0x3012b2cd
xor ecx, ecx
cmp dword [ebx + 0x18], ecx
je 0x3012b2cd
test al, 8
mov edi, dword [ebp + 8]
je 0x3012b26c
mov ax, word [esi + 0x7a]
or word [esi + 0x70], 8
mov word [esi + 0x42], ax
mov ax, word [esi + 0x76]
mov word [esi + 0x3e], ax
mov eax, dword [ebp - 0xc]
mov word [esi + 0x40], cx
mov word [esi + 0x3c], cx
mov eax, dword [eax]
call fcn.3012978b
test eax, eax
jne 0x3012b2e2
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
add eax, eax
push eax
mov eax, dword [ebx + 0x1c]
lea eax, [eax + edi*2]
push eax
push dword [esi + 0x10]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp - 4]
shl eax, 2
push eax
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x40]
mov ecx, edi
shl ecx, 2
add eax, ecx
push eax
push dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x48]
push dword [ebp - 8]
add eax, dword [ebp - 0xc]
push eax
push dword [esi + 0x18]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x44]
push dword [ebp - 8]
add eax, dword [ebp - 0xc]
push eax
push dword [esi + 0x1c]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x38]
push dword [ebp - 4]
add eax, edi
push eax
push dword [esi + 0x20]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0x3c
cmp dword [eax + 0xc0], 0
je 0x3012b204
mov eax, dword [ebx + 0x20]
push dword [ebp - 8]
add eax, dword [ebp - 0xc]
push eax
push dword [esi + 0x24]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
shl eax, 3
push eax
mov eax, dword [ebx + 0x24]
lea eax, [eax + edi*8]
push eax
push dword [esi + 0x28]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x2c]
add eax, dword [ebp - 0x1c]
add esp, 0xc
push dword [ebp - 0x28]
push 0
push dword [esi + 0x2c]
push eax
call fcn.3012c4d8
mov eax, dword [ebx + 0x30]
push dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
push eax
push dword [esi + 0x30]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x34]
push dword [ebp - 8]
add eax, dword [ebp - 0xc]
push eax
push dword [esi + 0x34]
call sub.MSVCR80.dll_memcpy
mov eax, dword [ebx + 0x18]
push dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push dword [esi + 0x38]
call sub.MSVCR80.dll_memcpy
add esp, 0x24
jmp 0x3012b2cd
mov ax, word [esi + 0x76]
mov word [esi + 0x20], ax
mov eax, dword [ebp - 0xc]
mov word [esi + 0x22], cx
mov eax, dword [eax]
call fcn.3012978b
test eax, eax
jne 0x3012b2e2
mov eax, dword [ebx + 0x2c]
test eax, eax
mov edi, dword [ebp - 0x10]
je 0x3012b2a1
push dword [ebp - 0x14]
add eax, edi
push eax
push dword [esi + 0x14]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x3012b2b9
push dword [ebp - 0x14]
add eax, edi
push eax
push dword [esi + 0x18]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x18]
push dword [ebp - 0x14]
add eax, edi
push eax
push dword [esi + 0x1c]
call sub.MSVCR80.dll_memcpy
add esp, 0xc
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x20], 0x1c
cmp eax, dword [ebp + 0x10]
jle 0x3012afb6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc