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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x28]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp + 8]
dec eax
cmp dword [ebp + 0x18], ecx
mov dword [ebp + 8], eax
je 0x3012a5e9
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + 0x44]
mov dword [ebp + 8], eax
push ebx
push esi
inc eax
xor esi, esi
cmp dword [ebp + 0x10], ecx
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], esi
je 0x3012a606
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 0x44]
mov dword [ebp - 8], esi
cmp dword [ebp + 0x18], ecx
lea eax, [esi - 1]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ecx
je 0x3012a7c0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
imul eax, eax, 0x1c
mov edi, dword [eax + ecx + 0x18]
test byte [edi + 0x80], 0x10
jne 0x3012a64f
cmp byte [edi + 0x9a], 0xa
je 0x3012a64f
mov eax, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x3012a64f
test byte [eax + 0x70], 1
je 0x3012a670
cmp dword [eax + 0x6c], 0
jg 0x3012a670
cmp byte [edi + 0x9a], 3
jne 0x3012a661
mov eax, dword [ebp + 0x1c]
test byte [eax + 0x48], 0x20
jne 0x3012a670
push dword [ebp + 8]
push esi
push dword [ebp + 0x20]
push ecx
call fcn.301290bd
mov ebx, eax
test byte [edi + 0x80], 8
mov eax, dword [ebp + 0x1c]
je 0x3012a746
cmp dword [eax + 0xc], 0
je 0x3012a72b
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + 0x30]
test ecx, ecx
movzx edx, word [eax + 0x32]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x18], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
jle 0x3012a72b
cmp ebx, esi
mov eax, dword [ebp + 0x28]
mov dword [eax], 1
jl 0x3012a72b
cmp dword [ebp + 0x18], 0
jle 0x3012a72b
mov eax, dword [ebp + 0x20]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
movzx ecx, word [eax + 0x76]
movzx eax, word [eax + 0x74]
sub ecx, eax
cmp ecx, dword [ebp + 0x18]
jge 0x3012a6e1
mov eax, dword [esi]
movzx edi, word [eax + 0x76]
movzx eax, word [eax + 0x74]
sub edi, eax
jmp 0x3012a6e4
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
sub eax, edi
push eax
push dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
call fcn.3012c3d9
mov ecx, dword [ebp - 4]
sub ecx, eax
mov eax, dword [esi]
sub dword [ebp - 4], ecx
mov word [eax + 0x3e], di
mov eax, dword [esi]
mov word [eax + 0x42], cx
mov eax, dword [ebp + 0x18]
test eax, eax
mov dword [ebp + 0x18], eax
jle 0x3012a724
push ebx
push dword [ebp - 8]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
call fcn.301290bd
mov ebx, eax
mov esi, dword [ebp - 8]
cmp ebx, esi
jge 0x3012a6b6
and dword [ebp - 0x14], 0
cmp ebx, esi
mov dword [ebp - 0x10], ebx
jl 0x3012a7c0
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax + ebx*4]
movzx ecx, word [ebx + 0x3e]
jmp 0x3012a7b7
movzx edi, word [eax + 0x18]
test edi, edi
jle 0x3012a7c0
mov eax, dword [ebp + 0x28]
mov dword [eax], 1
jmp 0x3012a79e
test edi, edi
jle 0x3012a7a2
mov eax, dword [ebp + 0x20]
lea edx, [eax + ebx*4]
mov eax, dword [edx]
movzx ecx, word [eax + 0x76]
movzx eax, word [eax + 0x74]
sub ecx, eax
cmp ecx, edi
jge 0x3012a781
mov ecx, dword [edx]
movzx eax, word [ecx + 0x76]
movzx ecx, word [ecx + 0x74]
sub eax, ecx
jmp 0x3012a783
mov eax, edi
mov ecx, dword [edx]
sub edi, eax
test edi, edi
mov word [ecx + 0x20], ax
jle 0x3012a79e
push ebx
push esi
push dword [ebp + 0x20]
push dword [ebp + 0xc]
call fcn.301290bd
mov ebx, eax
cmp ebx, esi
jge 0x3012a759
and dword [ebp - 0x14], 0
cmp ebx, esi
mov dword [ebp - 0x10], ebx
jl 0x3012a7c0
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax + ebx*4]
movzx ecx, word [ebx + 0x20]
movzx eax, word [ebx + 0x76]
sub eax, ecx
mov dword [ebp - 0x14], eax
xor edx, edx
cmp dword [ebp + 0x10], edx
je 0x3012a981
mov ecx, dword [ebp + 0xc]
mov eax, esi
imul eax, eax, 0x1c
mov ecx, dword [eax + ecx + 0x18]
test byte [ecx + 0x80], 0x10
mov dword [ebp + 0x18], ecx
jne 0x3012a805
cmp byte [ecx + 0x9a], 0xa
je 0x3012a805
mov edi, dword [ebp + 0x20]
mov eax, dword [edi + esi*4]
cmp eax, edx
je 0x3012a808
test byte [eax + 0x70], 1
je 0x3012a801
cmp dword [eax + 0x6c], edx
jle 0x3012a808
mov ebx, esi
jmp 0x3012a81c
mov edi, dword [ebp + 0x20]
push esi
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.3012910c
mov ecx, dword [ebp + 0x18]
mov ebx, eax
xor edx, edx
test byte [ecx + 0x80], 8
mov eax, dword [ebp + 0x14]
je 0x3012a8fd
cmp dword [eax + 0xc], edx
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x1c], edx
je 0x3012a847
mov eax, dword [eax + 0xc]
movzx ecx, word [eax + 0x30]
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 0x10], edx
mov dword [ebp + 0x18], edx
mov dword [ebp - 4], edx
jle 0x3012a8e1
mov eax, dword [ebp + 0x28]
mov dword [eax], 1
jmp 0x3012a8dc
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], edi
jge 0x3012a8e1
mov eax, dword [ebp + 0x20]
sub edi, dword [ebp + 0x18]
lea esi, [eax + ebx*4]
mov eax, dword [esi]
movzx ecx, word [eax + 0x76]
movzx eax, word [eax + 0x74]
sub ecx, eax
cmp ecx, edi
jge 0x3012a88e
mov eax, dword [esi]
movzx edi, word [eax + 0x76]
movzx eax, word [eax + 0x74]
sub edi, eax
mov eax, dword [ebp + 0x18]
add eax, edi
mov dword [ebp + 0x18], eax
dec eax
push eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
push dword [eax + 0x10]
push dword [ebp - 0x1c]
call fcn.3012c3ea
xor ecx, ecx
inc ecx
sub ecx, dword [ebp - 4]
add eax, ecx
mov ecx, dword [esi]
add dword [ebp - 4], eax
mov word [ecx + 0x3c], di
mov ecx, dword [esi]
mov word [ecx + 0x40], ax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x10]
mov dword [ebp + 0x18], ecx
jge 0x3012a8dc
push ebx
push dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
call fcn.3012910c
mov ebx, eax
cmp ebx, dword [ebp + 8]
jle 0x3012a861
and dword [ebp - 0x18], 0
cmp ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
jg 0x3012a981
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax + ebx*4]
movzx ecx, word [ebx + 0x3c]
jmp 0x3012a976
movzx esi, word [eax + 0x18]
cmp esi, edx
mov dword [ebp + 0x18], edx
jle 0x3012a981
mov eax, dword [ebp + 0x28]
mov dword [eax], 1
jmp 0x3012a95f
cmp dword [ebp + 0x18], esi
jge 0x3012a964
mov eax, dword [edi + ebx*4]
movzx edx, word [eax + 0x76]
movzx eax, word [eax + 0x74]
mov ecx, esi
sub ecx, dword [ebp + 0x18]
sub edx, eax
cmp edx, ecx
jge 0x3012a93d
mov ecx, dword [edi + ebx*4]
movzx eax, word [ecx + 0x76]
movzx ecx, word [ecx + 0x74]
sub eax, ecx
jmp 0x3012a93f
mov eax, ecx
add dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], esi
mov ecx, dword [edi + ebx*4]
mov word [ecx + 0x22], ax
jge 0x3012a95d
push ebx
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.3012910c
mov ebx, eax
xor edx, edx
cmp ebx, dword [ebp + 8]
jle 0x3012a913
cmp ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], edx
jg 0x3012a981
mov ebx, dword [edi + ebx*4]
movzx ecx, word [ebx + 0x22]
movzx eax, word [ebx + 0x74]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
imul eax, eax, 0x1c
lea eax, [eax + ecx + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 8]
cmp ecx, edx
mov eax, ecx
jl 0x3012a9a2
mov eax, edx
mov esi, dword [ebp + 0x14]
cmp esi, eax
jg 0x3012aa21
mov eax, dword [ebp + 0x20]
lea ebx, [eax + esi*4]
mov esi, dword [ebx]
movzx eax, word [esi + 0x70]
test al, 8
je 0x3012aa15
mov edi, dword [ebp + 0x18]
mov edi, dword [edi]
test byte [edi + 0x80], 0x10
jne 0x3012a9de
cmp byte [edi + 0x9a], 0xa
je 0x3012a9de
test esi, esi
je 0x3012a9de
test al, 1
je 0x3012a9f5
cmp dword [esi + 0x6c], 0
jg 0x3012a9f5
cmp dword [ebp + 0x14], edx
jne 0x3012aa15
cmp byte [edi + 0x9a], 3
jne 0x3012aa15
mov eax, dword [ebp + 0x1c]
test byte [eax + 0x48], 0x20
je 0x3012aa15
call fcn.301293dc
mov ecx, dword [ebx]
mov word [ecx + 0x78], ax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebx]
mov ecx, dword [eax]
call fcn.30129397
mov ecx, dword [ebx]
mov word [ecx + 0x7a], ax
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 0x14]
add dword [ebp + 0x18], 0x1c
jmp 0x3012a997
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x10]
jge 0x3012aa2c
mov eax, dword [ebp - 0x10]
cmp eax, edx
mov dword [ebp + 0x14], eax
jg 0x3012aac2
mov edx, dword [ebp + 0xc]
imul eax, eax, 0x1c
lea eax, [eax + edx + 0x18]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x14]
lea ebx, [eax + edx*4]
mov esi, dword [ebx]
movzx eax, word [esi + 0x70]
test al, 8
je 0x3012aab3
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
test byte [edi + 0x80], 0x10
jne 0x3012aa7c
cmp byte [edi + 0x9a], 0xa
je 0x3012aa7c
test esi, esi
je 0x3012aa7c
test al, 1
je 0x3012aa93
cmp dword [esi + 0x6c], 0
jg 0x3012aa93
cmp edx, dword [ebp + 8]
jne 0x3012aab3
cmp byte [edi + 0x9a], 3
jne 0x3012aab3
mov eax, dword [ebp + 0x1c]
test byte [eax + 0x48], 0x20
je 0x3012aab3
call fcn.301293dc
mov ecx, dword [ebx]
mov word [ecx + 0x78], ax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebx]
mov ecx, dword [eax]
call fcn.30129397
mov ecx, dword [ebx]
mov word [ecx + 0x7a], ax
mov ecx, dword [ebp - 0xc]
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 0x1c
cmp eax, dword [ebp + 8]
jle 0x3012aa44
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov edx, dword [ebp + 0x2c]
mov dword [edx], ecx
mov edx, dword [ebp + 0x28]
cmp dword [edx], 0
pop edi
pop esi
pop ebx
je 0x3012aaed
cmp ecx, eax
jl 0x3012aaed
jne 0x3012aae9
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x18], eax
jl 0x3012aaed
xor eax, eax
jmp 0x3012aaf0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
leave
ret 0x2c