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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov edx, dword [0x413108]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4136eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
push 1
push 0x2000
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
push eax
push 0
call fcn.004065ec
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x18], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004065ec
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00402b88
lea eax, [ebp - 0x30]
push eax
push 2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004065fc
mov eax, dword [ebp - 0x14]
add eax, 0x18
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x14]
add eax, edx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x413604
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x24]
mov esi, dword [edx + eax*8 + 8]
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0x10]
mov dword [ebp - 0x2c], eax
cmp esi, dword [ebp - 0x2c]
jae 0x4135be
xor esi, dword [ebp - 0x2c]
xor dword [ebp - 0x2c], esi
xor esi, dword [ebp - 0x2c]
push 4
push 0x1000
push esi
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call fcn.004065ec
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, esi
call fcn.00403240
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0x14]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00402b88
inc ebx
dec edi
jne 0x413599
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4130dc]
call fcn.004054d0
add esp, 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x413645
push ebp
add eax, dword [ebp - 0x10]
call fcn.004132e4
pop ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x41365c
push ebp
add eax, dword [ebp - 0x10]
call fcn.00413378
pop ecx
mov eax, dword [ebp - 0x14]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x41369b
inc edi
xor ebx, ebx
lea eax, [ebp - 0x30]
push eax
lea esi, [ebx + ebx*4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + esi*8 + 0x24]
call fcn.00413280
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + esi*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call fcn.004065fc
inc ebx
dec edi
jne 0x41366b
cmp dword [ebp - 8], 0
je 0x4136b5
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 8]
test al, al
jne 0x4136b5
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4136cf
push ebp
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x7c]
add eax, dword [ebp - 0x10]
call fcn.00413298
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136f2
lea eax, [ebp - 0xc]
mov edx, dword [0x413108]
call fcn.00404e54
ret