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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x30], edi
mov dword [ebp - 8], edi
je 0x1313ddc
call dword [0x495138]
mov dword [ebp - 8], eax
xor bl, bl
cmp dword [esi + 0x48], edi
je 0x1313e51
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x1313df8
mov ecx, dword [ebp - 8]
sub ecx, dword [esi + 0x34]
cmp ecx, eax
jb 0x1313fef
lea edx, [esi + 0x18]
lea ecx, [esi + 0x80]
call fcn.012db109
test al, al
je 0x1313e51
lea edx, [esi + 0x24]
lea ecx, [esi + 0x8c]
call fcn.012dbada
test al, al
je 0x1313e51
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x10]
jne 0x1313e51
mov eax, dword [esi + 0x7c]
cmp eax, dword [esi + 0x14]
jne 0x1313e51
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 8]
jne 0x1313e4f
mov eax, dword [esi + 0x74]
cmp eax, dword [esi + 0xc]
jne 0x1313e4f
mov eax, dword [esi + 0x68]
cmp eax, dword [esi]
jne 0x1313e4f
mov eax, dword [esi + 0x6c]
cmp eax, dword [esi + 4]
je 0x1313fef
mov bl, 1
mov eax, dword [esi + 0x38]
and dword [esi + 0x3c], 0
lea edi, [esi + 0x38]
mov ecx, esi
and byte [eax], 0
call fcn.01313d22
test bl, bl
je 0x1313e7e
lea edx, [esi + 0x98]
mov ecx, edi
call fcn.012db109
test al, al
jne 0x1313fef
push edi
lea ecx, [esi + 0x98]
call fcn.012dae76
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, eax
or ecx, edx
je 0x1313eb4
push edx
lea ecx, [ebp - 0x28]
push eax
call fcn.012da072
push 0x20
mov ecx, edi
call fcn.012da5e3
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.012daf44
cmp dword [esi + 0x1c], 0
je 0x1313ece
push 0x20
mov ecx, edi
call fcn.012da5e3
lea eax, [esi + 0x18]
mov ecx, edi
push eax
call fcn.012daf9d
cmp dword [esi + 0x28], 0
je 0x1313f92
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jae 0x1313f92
push 0x20
mov ecx, edi
call fcn.012da5e3
lea ebx, [esi + 0x50]
lea ecx, [esi + 0x24]
mov edx, ebx
call fcn.012da7e1
push 0x20
push 0xa
mov ecx, ebx
call fcn.012db0c9
mov eax, dword [esi + 0x54]
add eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jbe 0x1313f87
mov ebx, dword [esi + 0x28]
test ebx, ebx
je 0x1313f7d
mov eax, ebx
shr eax, 3
jne 0x1313f27
push 1
pop eax
sub ebx, eax
lea eax, [esi + 0x24]
push eax
lea ecx, [esi + 0x5c]
call fcn.012db5b8
mov eax, dword [esi + 0x28]
mov dword [ebp - 4], ebx
shr dword [ebp - 4], 1
sub eax, ebx
lea ecx, [esi + 0x5c]
push eax
push dword [ebp - 4]
call fcn.012dbb31
push 0x49a41c
lea ecx, [esi + 0x5c]
push dword [ebp - 4]
call fcn.012db99a
lea edx, [esi + 0x50]
lea ecx, [esi + 0x5c]
call fcn.012da7e1
mov eax, dword [esi + 0x54]
add eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0xac]
jbe 0x1313f79
test ebx, ebx
jne 0x1313f1d
test ebx, ebx
jne 0x1313f87
mov eax, dword [esi + 0x50]
and dword [esi + 0x54], 0
and byte [eax], 0
lea eax, [esi + 0x50]
mov ecx, edi
push eax
call fcn.012daf9d
lea ecx, [esi + 0x44]
mov edx, edi
call fcn.01313ff4
test al, al
je 0x1313fda
push 0
mov ecx, esi
call fcn.01313c8f
mov eax, dword [esi + 0xa4]
lea ebx, [esi + 0xa4]
push dword [eax]
push dword [edi]
call dword [0x4951c0]
cmp byte [esi + 0xa8], 0
pop ecx
pop ecx
je 0x1313fd1
mov ecx, dword [ebx]
call fcn.012da724
push edi
lea ecx, [esi + 0x44]
call fcn.012dae76
push esi
lea ecx, [esi + 0x68]
call fcn.01314012
cmp dword [esi + 0x30], 0
je 0x1313fef
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
pop edi
pop esi
pop ebx
leave
ret