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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x8822d1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x8819a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x881979
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x78], 0
je 0x8823fc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
dec eax
test eax, eax
jl 0x8823fc
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov ecx, 0
call fcn.005caf34
mov eax, dword [ebp - 0x30]
call fcn.00882154
cmp eax, dword [ebp - 8]
jne 0x8823f0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
movzx eax, word [eax + edx*2]
mov dword [ebp - 0x24], eax
cmp byte [ebp - 9], 0
je 0x8823d9
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
cmp word [eax], 0xff8b
jne 0x8823d9
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x10], eax
jmp 0x8823fc
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
jmp 0x8823fc
inc dword [ebp - 0x1c]
dec dword [ebp - 0x2c]
jne 0x88235b
cmp dword [ebp - 0x10], 0
jne 0x88256f
mov eax, dword [ebp - 4]
cmp eax, dword [0x978750]
jne 0x88256f
cmp byte [ebp - 0x25], 0
jne 0x88256f
mov byte [ebp - 0x25], 1
cmp dword [0x978784], 0xd
jne 0x882559
lea eax, [ebp - 0x38]
mov edx, dword [0x97d5ec]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
mov edx, dword [0x97d2b0]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov edx, dword [0x97d2fc]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
mov edx, dword [0x97d51c]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x44]
lea eax, [ebp - 0x48]
mov edx, dword [0x97d2b0]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov edx, dword [0x97d40c]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x4c]
lea eax, [ebp - 0x50]
mov edx, dword [0x97d478]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x50]
lea eax, [ebp - 0x54]
mov edx, dword [0x97d498]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x54]
lea eax, [ebp - 0x58]
mov edx, dword [0x97d664]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x58]
lea eax, [ebp - 0x5c]
mov edx, dword [0x97d2b0]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x5c]
push 0x8819c4
lea eax, [ebp - 0x60]
mov edx, dword [0x97d584]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x60]
lea eax, [ebp - 0x64]
mov edx, dword [0x97d40c]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x64]
lea eax, [ebp - 0x68]
mov edx, dword [0x97d40c]
mov dx, word [edx]
call fcn.005cb650
push dword [ebp - 0x68]
lea eax, [ebp - 0x34]
mov edx, 0xe
call fcn.005cb904
mov eax, dword [ebp - 0x34]
call fcn.005cb628
push eax
call fcn.005d2d64
mov dword [0x978784], eax
cmp dword [0x978784], 0xd
jbe 0x88256f
mov eax, dword [0x978784]
mov dword [ebp - 4], eax
jmp 0x882308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x882583
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x8819ad
lea eax, [ebp - 0x68]
mov edx, 0xe
call fcn.005ca86c
lea eax, [ebp - 0x30]
call fcn.005ca830
ret