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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x31ecbbe6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x31ecbbb6
cmp dword [ebp + 0xc], 0
je 0x31ecbbb6
mov esi, ebx
mov eax, esi
call fcn.31ec82b4
test al, al
je 0x31ecbbb6
mov eax, dword [esi + 0x3c]
add eax, ebx
add eax, 0x78
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
je 0x31ecbbb6
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffff
jg 0x31ecba92
mov edx, dword [ebp - 0xc]
mov esi, eax
sub esi, dword [edx + 0x10]
jmp 0x31ecbb08
lea eax, [ebp - 0x24]
mov edx, dword [ebp + 0xc]
call fcn.31ec451c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x31ecbaa9
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x31ecbbb6
or esi, 0xffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x31ecbb08
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x31ecbb02
add eax, ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.31ec451c
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.31ec451c
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.31ec4728
jne 0x31ecbb02
mov eax, dword [ebp - 0x1c]
movzx esi, word [eax + edi*2]
jmp 0x31ecbb08
inc edi
dec dword [ebp - 0x20]
jne 0x31ecbac5
test esi, esi
jl 0x31ecbbb6
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax + 0x14]
jg 0x31ecbbb6
mov eax, dword [ebp - 0x14]
cmp dword [eax + esi*4], 0
je 0x31ecbbb6
mov eax, dword [ebp - 0x14]
add ebx, dword [eax + esi*4]
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*4]
cmp edx, eax
ja 0x31ecbb4b
mov ecx, dword [ebp - 8]
add edx, dword [ecx + 4]
cmp eax, edx
jbe 0x31ecbb53
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x31ecbbb6
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.31ec4af4
mov edx, dword [ebp - 0x30]
mov eax, 0x31ecbc00
call fcn.31ec4c00
test eax, eax
je 0x31ecbbb6
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
call fcn.31ec451c
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.31ec6e2c
mov eax, dword [ebp - 0x34]
call fcn.31ec4790
push eax
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x10]
call fcn.31ec451c
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.31ec6d94
mov eax, dword [ebp - 0x3c]
call fcn.31ec4790
push eax
lea eax, [ebp - 4]
push eax
call fcn.31ec68d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ecbbed
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.31ec4348
lea eax, [ebp - 0x30]
call fcn.31ec4a08
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.31ec4348
ret