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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x554
mov ecx, dword [eax]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x568]
cmp ecx, 1
jne 0x883572
mov ecx, dword [edi + 0x4de0]
test ecx, ecx
jne 0x883572
mov esi, dword [eax + 0x34]
mov eax, dword [edi + 0x37b8]
cdq
idiv dword [esi + 4]
mov ecx, eax
mov eax, dword [edi + 0x37bc]
cdq
shl ecx, 3
idiv dword [esi + 8]
jmp 0x883581
mov ecx, dword [edi + 0x37b8]
mov eax, dword [edi + 0x37bc]
shl ecx, 3
mov ebp, dword [edi + 0x4834]
mov edi, dword [esp + 0x56c]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x56c]
lea esi, [edi + 0x2c]
mov edx, dword [edx + 0x28]
push esi
push edx
mov edx, dword [esp + 0x574]
shl eax, 3
mov edx, dword [edx + 0x24]
push edx
mov edx, dword [esp + 0x578]
mov edx, dword [edx + 0x20]
push edx
mov edx, dword [esp + 0x57c]
mov edx, dword [edx + 0x3c]
push edx
mov edx, dword [esp + 0x580]
mov edx, dword [edx + 0x30]
push edx
mov edx, dword [esp + 0x598]
push edx
mov edx, dword [esp + 0x598]
push edx
push eax
mov eax, dword [esp + 0x590]
push ecx
add eax, 4
push eax
call fcn.008832dc
add esp, 0x30
test eax, eax
jne 0x8838c5
mov edx, dword [esp + 0x568]
cmp dword [edx + 0x34], 2
jne 0x883633
cmp dword [edx + 0x58], 1
jne 0x883633
mov eax, dword [edi + 0x38]
mov esi, dword [esi]
test eax, eax
mov dword [esp + 0x10], esi
jne 0x883627
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x88363e
cmp eax, 1
jne 0x88363e
inc esi
mov dword [esp + 0x10], esi
jmp 0x88363e
mov edi, dword [edi + 0x38]
mov eax, dword [esi]
add edi, eax
mov dword [esp + 0x10], edi
xor esi, esi
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x570]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x28], esi
mov ecx, dword [edi]
cmp ecx, eax
jge 0x88365a
mov eax, ecx
cmp dword [esp + 0x18], eax
jge 0x883859
cmp dword [edx + 0x58], 4
jne 0x883673
cmp esi, 0x18
jge 0x883848
cmp ecx, 1
jne 0x88368a
mov eax, dword [edx + 0x4de0]
test eax, eax
jne 0x88368a
mov edi, ecx
mov dword [esp + 0x30], ecx
jmp 0x88369c
mov ecx, dword [edi + 0x34]
mov edi, dword [ecx + esi + 8]
lea eax, [ecx + esi]
mov eax, dword [ecx + esi + 4]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x570]
mov eax, dword [ecx + 0x34]
add esi, eax
mov eax, dword [edx + 0x37b8]
cdq
idiv dword [esi + 4]
mov edx, dword [esp + 0x568]
mov ecx, eax
mov eax, dword [edx + 0x37bc]
cdq
idiv dword [esi + 8]
test edi, edi
mov dword [esp + 0x50], ecx
mov edx, eax
mov dword [esp + 0x48], edx
jle 0x8837f7
mov ebx, edx
lea eax, [esp + 0x64]
shl ebx, 8
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], edi
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x24], eax
jle 0x8837de
lea eax, [ecx*8]
mov dword [esp + 0x34], esi
xor esi, esi
test ebx, ebx
mov dword [esp + 0x2c], esi
jle 0x8837c5
shl edx, 5
mov dword [esp + 0x40], edx
test eax, eax
mov dword [esp + 0x38], 0
jle 0x8837b3
mov eax, dword [esp + 0x24]
add esi, eax
mov dword [esp + 0x1c], esi
mov al, byte [ebp]
add ebp, 2
test edx, edx
mov byte [esp + 0x17], al
mov dword [esp + 0x4c], ebp
jle 0x88378c
mov esi, dword [esp + 0x1c]
lea ebp, [edx + 0x1f]
shr ebp, 5
test ecx, ecx
jle 0x883782
mov al, byte [esp + 0x17]
mov edx, ecx
mov bl, al
mov edi, esi
mov bh, bl
mov eax, ebx
shl eax, 0x10
mov ax, bx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x40]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x50]
add esi, 0x20
dec ebp
jne 0x883756
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
add esi, ecx
lea eax, [ecx*8]
add ebx, ecx
cmp esi, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], ebx
jl 0x88373a
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
add esi, edx
cmp esi, ebx
mov dword [esp + 0x2c], esi
jl 0x883720
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
add edi, eax
dec esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], esi
jne 0x88370b
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
add esi, ebx
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], eax
jne 0x8836ec
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x568]
lea eax, [esp + 0x64]
push eax
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push esi
lea ebx, [esp + 0x78]
call fcn.008841fc
mov eax, dword [esi + 0x34]
add esp, 0x14
cmp eax, 2
jne 0x883834
cmp dword [esi + 0x58], 1
jne 0x883834
mov eax, dword [esp + 0x10]
dec eax
jmp 0x883839
mov eax, dword [esp + 0x10]
inc eax
mov edx, dword [esp + 0x568]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x18]
inc ecx
add esi, 0x18
mov dword [esp + 0x18], ecx
jmp 0x883644
mov eax, dword [edx + 0x74]
test eax, eax
jne 0x8838c5
mov ecx, dword [edx + 0x34]
mov eax, 0xff
cmp ecx, eax
jne 0x883871
cmp dword [edx + 0x58], eax
je 0x8838c5
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 0x30]
cmp esi, eax
jge 0x8838c5
jmp 0x883885
mov edx, dword [esp + 0x568]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
lea eax, [esp + 0x5c]
push esi
push eax
push edx
call fcn.008841fc
mov eax, dword [esp + 0x57c]
add esp, 0x14
cmp dword [eax + 0x34], 2
jne 0x8838b4
cmp dword [eax + 0x58], 1
jne 0x8838b4
mov ecx, dword [esp + 0x10]
dec ecx
jmp 0x8838b9
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x30]
inc esi
cmp esi, ecx
jl 0x88387e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret