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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x401299
cmp dword [ebp + 0xc], 0
jne 0x4012a1
mov eax, dword [ebp - 0x1c]
jmp 0x401457
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x24], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x14], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx + 0x78]
mov edx, dword [eax + edx + 0x7c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
jmp 0x401317
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x18]
jae 0x401454
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.004010d0
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jne 0x40144f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx*4]
cmp ecx, dword [ebp - 0x34]
jbe 0x401437
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
cmp dword [eax + ecx*4], edx
jae 0x401437
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
je 0x401433
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x2e
je 0x4013b9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x4013a0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov cx, word [ebp - 8]
mov word [ebp - 0x3c], cx
mov edx, dword [ebp - 8]
add edx, 1
mov word [ebp - 0x3a], dx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call dword [0x40f3b2]
test eax, eax
jne 0x401433
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0
call dword [0x40f3a2]
test eax, eax
jl 0x401429
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 1]
push eax
call fcn.004010d0
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00401280
add esp, 8
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x44]
push edx
call dword [0x40f3b6]
jmp 0x401454
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x1c], ecx
jmp 0x401454
jmp 0x40130e
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret