Function at 0x96552c
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 0x965572
mov ecx, dword [edi + 0x4de0]
test ecx, ecx
jne 0x965572
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 0x965581
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.009652dc
add esp, 0x30
test eax, eax
jne 0x9658c5
mov edx, dword [esp + 0x568]
cmp dword [edx + 0x34], 2
jne 0x965633
cmp dword [edx + 0x58], 1
jne 0x965633
mov eax, dword [edi + 0x38]
mov esi, dword [esi]
test eax, eax
mov dword [esp + 0x10], esi
jne 0x965627
add esi, 2
mov dword [esp + 0x10], esi
jmp 0x96563e
cmp eax, 1
jne 0x96563e
inc esi
mov dword [esp + 0x10], esi
jmp 0x96563e
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 0x96565a
mov eax, ecx
cmp dword [esp + 0x18], eax
jge 0x965859
cmp dword [edx + 0x58], 4
jne 0x965673
cmp esi, 0x18
jge 0x965848
cmp ecx, 1
jne 0x96568a
mov eax, dword [edx + 0x4de0]
test eax, eax
jne 0x96568a
mov edi, ecx
mov dword [esp + 0x30], ecx
jmp 0x96569c
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 0x9657f7
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 0x9657de
lea eax, [ecx*8]
mov dword [esp + 0x34], esi
xor esi, esi
test ebx, ebx
mov dword [esp + 0x2c], esi
jle 0x9657c5
shl edx, 5
mov dword [esp + 0x40], edx
test eax, eax
mov dword [esp + 0x38], 0
jle 0x9657b3
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 0x96578c
mov esi, dword [esp + 0x1c]
lea ebp, [edx + 0x1f]
shr ebp, 5
test ecx, ecx
jle 0x965782
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 0x965756
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 0x96573a
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
add esi, edx
cmp esi, ebx
mov dword [esp + 0x2c], esi
jl 0x965720
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 0x96570b
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 0x9656ec
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.009661fc
mov eax, dword [esi + 0x34]
add esp, 0x14
cmp eax, 2
jne 0x965834
cmp dword [esi + 0x58], 1
jne 0x965834
mov eax, dword [esp + 0x10]
dec eax
jmp 0x965839
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 0x965644
mov eax, dword [edx + 0x74]
test eax, eax
jne 0x9658c5
mov ecx, dword [edx + 0x34]
mov eax, 0xff
cmp ecx, eax
jne 0x965871
cmp dword [edx + 0x58], eax
je 0x9658c5
mov esi, dword [esp + 0x18]
mov eax, dword [edx + 0x30]
cmp esi, eax
jge 0x9658c5
jmp 0x965885
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.009661fc
mov eax, dword [esp + 0x57c]
add esp, 0x14
cmp dword [eax + 0x34], 2
jne 0x9658b4
cmp dword [eax + 0x58], 1
jne 0x9658b4
mov ecx, dword [esp + 0x10]
dec ecx
jmp 0x9658b9
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x30]
inc esi
cmp esi, ecx
jl 0x96587e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x554
ret