Function at 0x401230
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 0x401249
cmp dword [ebp + 0xc], 0
jne 0x401251
mov eax, dword [ebp - 0x1c]
jmp 0x401407
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 0x4012c7
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 0x401404
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.00401080
add esp, 0xc
cmp eax, dword [ebp + 0xc]
jne 0x4013ff
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 0x4013e7
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 0x4013e7
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 0x4013e3
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x2e
je 0x401369
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x401350
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 [0x40e02a]
test eax, eax
jne 0x4013e3
mov dword [ebp - 0x28], 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0
call dword [0x40e01a]
test eax, eax
jl 0x4013d9
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 1]
push eax
call fcn.00401080
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00401230
add esp, 8
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x44]
push edx
call dword [0x40e02e]
jmp 0x401404
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 0x401404
jmp 0x4012be
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret