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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x17c
mov esi, ecx
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x81fc40
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call fcn.0081c250
mov dword [ebp - 0x30], eax
movzx eax, byte [0xa56fa8]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx + 0x2fc]
mov dword [ebp - 0x34], eax
and dword [esi], 0xfffffffe
push 0
mov dword [ebp - 0x20], esi
push dword [esi + 0x24]
call fcn.007fe490
mov ecx, eax
xor eax, eax
cmp byte [0xa56fa8], 0
jne 0x8140f1
test ecx, ecx
je 0x8140f1
nop
mov esi, dword [0xa570d4]
mov edi, dword [ebp - 0x20]
add esi, dword [edi]
mov eax, dword [0xa31e54]
mov ebx, dword [0xa31e48]
xor ebx, dword [ebp - 0x28]
mov ecx, 0xffff2ebc
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
sub ebx, ecx
add ebx, eax
and esi, 2
shr esi, 1
mov ecx, ebx
call dword [0xa0535c]
lea eax, [ebp - 0x5c]
mov ecx, edi
push esi
push eax
call ebx
mov ebx, eax
mov dword [edi + 0x54], eax
or byte [edi], 8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
mov eax, dword [0xa31e50]
mov esi, dword [0xa31e4c]
or esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x2c]
add esi, eax
or ebx, 1
mov ecx, esi
call dword [0xa0535c]
mov ecx, edi
push dword [ebp + 8]
push dword [ebp - 0x38]
lea eax, [ebp - 0x58]
push eax
push ebx
call esi
mov byte [ebp - 0x2c], al
mov ecx, dword [edi + 0x78]
push dword [ebp + 8]
push dword [edi + 0x24]
call fcn.007d8b50
test al, al
je 0x813fa5
nop
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [0xa31e58]
add eax, dword [ebp - 0x30]
mov ecx, dword [0xa31e40]
add eax, dword [ebp - 0x28]
lea esi, [ecx + eax]
add esi, 0xd144
mov ecx, esi
call dword [0xa0535c]
mov edi, dword [ebp - 0x34]
mov ecx, edi
call esi
test ebx, ebx
jle 0x813f4c
nop
mov eax, dword [edi + 0x20]
movzx ecx, word [eax + ebx*2 - 2]
jmp 0x813f4e
xor ecx, ecx
nop
mov eax, dword [edi + 0x20]
movzx eax, word [eax + ebx*2]
add eax, dword [0xa5701c]
cmp ecx, eax
jae 0x813fa5
sub eax, ecx
imul ecx, ecx, 0x3c
add ecx, 0x34
mov edx, 0x30000000
jmp 0x813f76
add ecx, 0x3c
dec eax
je 0x813fa5
nop
mov esi, dword [ebp - 0x34]
mov esi, dword [esi + 0x14]
mov edi, dword [esi + ecx]
and edi, edx
cmp edi, 0x20000000
je 0x813f70
or edi, 0x20000000
mov dword [esi + ecx], edi
cmp dword [esi + ecx - 0x30], 3
jne 0x813f70
nop
mov dword [esi + ecx - 0x30], 1
jmp 0x813f70
cmp byte [ebp - 0x2c], 0
je 0x8140ef
nop
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x44], eax
add esi, 0x58
mov eax, dword [0xa31e5c]
mov ecx, dword [0xa31e44]
sub ecx, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ebp - 0x30]
add ecx, eax
add ecx, 0xd144
mov dword [ebp - 0x10], 0xffffffff
call dword [0xa0535c]
push 0x10
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x20], esi
push esi
call ecx
add esp, 0xc
mov byte [ebp - 0x188], 0
lea esi, [ebp - 0x184]
push 0x128
push 0
push esi
call fcn.00901a10
add esp, 0xc
push 0
push esi
call fcn.00795760
add esp, 8
lea eax, [ebp - 0x15c]
movzx ecx, byte [ebp - 0x188]
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x48]
push eax
push ecx
push 0x10
push edx
push esi
call fcn.00795900
add esp, 0x14
lea eax, [ebp - 0x184]
push eax
call fcn.00795ae0
add esp, 4
nop
mov eax, dword [ebp - 0x20]
push eax
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00795c10
add esp, 0xc
cmp byte [ebp + 0xc], 0
jne 0x8140d4
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.00771e70
mov eax, dword [0xa57004]
add eax, dword [0x9a75a4]
mov dword [ebp - 0x10], 2
mov ecx, esi
push eax
call fcn.00771fd0
lea ecx, [ebp - 0x24]
call fcn.00771ff0
nop
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x24]
push 0x10
push dword [ebp - 0x20]
call fcn.00772000
lea ecx, [ebp - 0x24]
push 0x20
push dword [ebp - 0x20]
call fcn.00772020
lea ecx, [ebp - 0x24]
call fcn.00771f30
nop
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x184]
push eax
call fcn.00795bd0
add esp, 4
mov al, 1
jmp 0x8140f1
xor eax, eax
nop
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x17c
pop esi
pop edi
pop ebx
pop ebp
ret 8