Function at 0x1005b100
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
xor ecx, ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, 0x10096210
mov dword [esp + 0x18], ecx
mov edx, 0x100000
nop
mov al, byte [ebp]
xor esi, esi
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x14], esi
cmp eax, 0x1c
ja case.default.0x1005b139
jmp dword [eax*4 + 0x1005b880]
test ecx, ecx
je 0x1005b76f
mov ebp, ecx
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp byte [ebx + 0x14], cl
je 0x1005b15d
movzx eax, byte [ebx + 0x1b]
mov dword [edi + eax*8 + 0x6c], ecx
cmp byte [ebx + 0x14], 0x66
jne 0x1005b120
mov al, byte [ebx + 0x1b]
cmp byte [ebx + 0x18], al
jne 0x1005b176
movzx eax, al
mov dword [edi + eax*8 + 0x6c], 1
mov eax, dword [edi + 0x20]
or dword [edi + 0x24], 0x800
mov dword [edi + 0x20], eax
jmp 0x1005b120
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x1005b1b6
movzx eax, byte [edi + 0xef]
mov cx, ax
add ax, ax
add cx, ax
movzx eax, byte [edi + 0xeb]
sub ax, 7
add cx, ax
movzx eax, cx
movzx esi, ax
jmp 0x1005b5d5
xor eax, eax
movzx esi, ax
jmp 0x1005b5d5
cmp dword [edi + 0xc], esi
je 0x1005b1b6
movzx eax, byte [edi + 0xeb]
movzx ecx, byte [edi + 0xef]
inc ax
shl cx, 2
add cx, ax
movzx eax, cx
movzx esi, ax
jmp 0x1005b5d5
mov eax, dword [edi + 0xc]
sub eax, 0
je 0x1005b1b6
movzx ecx, byte [edi + 0xef]
sub eax, 4
movzx eax, byte [edi + 0xec]
je 0x1005b218
add ax, 0x21
shl cx, 2
add cx, ax
movzx eax, cx
movzx esi, ax
jmp 0x1005b5d5
inc ax
shl cx, 3
add cx, ax
movzx eax, cx
movzx esi, ax
jmp 0x1005b5d5
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.1005c9f0
mov esi, dword [esp + 0x20]
add esp, 0xc
mov ecx, eax
jmp 0x1005b545
mov eax, dword [edi]
jmp dword [eax*4 + 0x1005b8f4]
xor eax, eax
cmp dword [edi], eax
setne al
movzx esi, ax
jmp 0x1005b5d5
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.1005c960
mov esi, dword [esp + 0x20]
add esp, 0xc
mov ecx, eax
jmp 0x1005b545
lea eax, [esp + 0x14]
push eax
push edi
push ebx
call fcn.1005c960
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x1005b54d
xor eax, eax
mov ecx, 0x100000
cmp word [esp + 0x14], 3
setne al
movzx esi, ax
jmp 0x1005b545
cmp byte [edi + 0xfa], 0
jne 0x1005b308
mov al, byte [edi + 8]
mov byte [edi + 0xfa], al
cmp al, 0xf
jb 0x1005b2c9
mov ecx, 0x80200002
jmp 0x1005b545
cmp dword [ebx + 0xc], esi
jbe 0x1005b319
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
inc byte [edi + 8]
dec dword [ebx + 0xc]
mov eax, dword [edi + 0x24]
or dword [edi + 0x20], 1
mov dword [edi + 0x24], eax
mov al, cl
shr al, 6
mov byte [edi + 0xf7], al
mov al, cl
shr al, 3
and al, 7
and cl, 7
mov byte [edi + 0xf8], al
mov byte [edi + 0xf9], cl
movzx esi, byte [edi + 0xf8]
mov ecx, 0x100000
jmp 0x1005b545
mov ecx, 0x80200000
jmp 0x1005b545
cmp byte [edi + 0xfa], 0
jne 0x1005b382
mov al, byte [edi + 8]
mov byte [edi + 0xfa], al
cmp al, 0xf
jb 0x1005b343
mov ecx, 0x80200002
jmp 0x1005b545
cmp dword [ebx + 0xc], esi
jbe 0x1005b319
mov eax, dword [ebx + 8]
mov cl, byte [eax]
inc eax
mov dword [ebx + 8], eax
inc byte [edi + 8]
dec dword [ebx + 0xc]
mov eax, dword [edi + 0x24]
or dword [edi + 0x20], 1
mov dword [edi + 0x24], eax
mov al, cl
shr al, 6
mov byte [edi + 0xf7], al
mov al, cl
shr al, 3
and al, 7
and cl, 7
mov byte [edi + 0xf8], al
mov byte [edi + 0xf9], cl
movzx esi, byte [edi + 0xf9]
mov ecx, 0x100000
jmp 0x1005b545
xor eax, eax
cmp byte [ebx + 0x11], al
setne al
movzx esi, ax
jmp 0x1005b5d5
movzx eax, byte [ebx + 0x14]
sub eax, 0x66
je 0x1005b41b
sub eax, 0x8c
je 0x1005b3f6
sub eax, 1
je 0x1005b3d1
push 0
push ebp
mov esi, 1
call fcn.1005eb10
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x1005b5d5
movzx eax, byte [ebx + 0x1b]
mov esi, 3
push 0
push ebp
mov dword [edi + eax*8 + 0x6c], 2
call fcn.1005eb10
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x1005b5d5
movzx eax, byte [ebx + 0x1b]
mov esi, 4
push 0
push ebp
mov dword [edi + eax*8 + 0x6c], 2
call fcn.1005eb10
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x1005b5d5
movzx eax, byte [ebx + 0x1b]
mov esi, 2
push 0
push ebp
mov dword [edi + eax*8 + 0x6c], 2
mov eax, dword [edi + 0x20]
and dword [edi + 0x24], 0xfffff7ff
mov dword [edi + 0x20], eax
call fcn.1005eb10
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x1005b5d5
cmp dword [edi], esi
jne 0x1005b464
mov eax, dword [ebx + 4]
cmp byte [eax + 6], 0
je 0x1005b464
mov esi, 2
jmp 0x1005b5d5
mov ecx, dword [edi + 0x24]
xor eax, eax
and ecx, 0x800
or eax, ecx
je 0x1005b47f
movzx eax, byte [ebx + 0x18]
mov dword [edi + eax*8 + 0x6c], 1
mov eax, dword [edi]
jmp dword [eax*4 + 0x1005b90c]
mov eax, dword [edi]
jmp dword [eax*4 + 0x1005b924]
mov eax, dword [ebx + 4]
mov ecx, 0x80200001
movzx eax, byte [eax + 0xb]
cmp eax, 3
mov esi, eax
cmovne ecx, edx
test ecx, ecx
jns 0x1005b5d5
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + 4]
movzx esi, byte [eax + 6]
jmp 0x1005b5d5
mov eax, dword [ebx + 4]
movzx esi, byte [eax + 9]
jmp 0x1005b5d5
movzx esi, byte [edi + 0xf3]
jmp 0x1005b5d5
movzx esi, byte [edi + 0xf0]
jmp 0x1005b5d5
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 1
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 2
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 3
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 4
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 5
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 6
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 7
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 8
jmp 0x1005b5d2
mov eax, dword [ebx]
mov esi, dword [eax + 8]
shr esi, 9
and esi, 1
push esi
push ebp
call fcn.1005eb10
mov cl, byte [esp + 0x1b]
add esp, 8
mov ebp, eax
test cl, cl
je 0x1005b871
js 0x1005b871
mov ecx, dword [esp + 0x18]
jmp 0x1005b11a
lea eax, [esp + 0x14]
push eax
movzx eax, word [ebp + 1]
push eax
push dword [edi + 0xc]
call fcn.1005ee90
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [edi + 0x24]
mov esi, dword [ebx + 4]
and ecx, 0x800
mov dword [esp + 0x18], eax
xor eax, eax
or eax, ecx
je 0x1005b62f
mov al, 1
jmp 0x1005b631
xor al, al
mov ecx, dword [edi]
mov dl, al
cmp ecx, 1
je 0x1005b650
cmp ecx, 3
je 0x1005b650
test ecx, ecx
jne 0x1005b652
mov al, byte [esi + 6]
and al, 1
add al, 2
add al, al
add al, dl
jmp 0x1005b652
add al, 2
mov edx, dword [esp + 0x18]
movzx eax, al
movzx ecx, byte [edx + 5]
and ecx, 7
mov al, byte [eax + ecx*8 + 0x10094360]
mov byte [edi + 0x16], al
shr al, 5
mov byte [esi + 4], al
mov al, byte [edx + 5]
mov edx, 8
movzx ecx, byte [edi + 0x16]
and al, 7
cmp al, 1
cmove ecx, edx
xor eax, eax
mov byte [edi + 0x16], cl
mov ecx, dword [edi + 0x24]
mov esi, dword [ebx + 4]
and ecx, 0x1000
or eax, ecx
je 0x1005b69c
mov dl, 1
jmp 0x1005b69e
xor dl, dl
mov eax, dword [edi]
cmp eax, 1
je 0x1005b6b3
cmp eax, 3
je 0x1005b6b3
test eax, eax
jne 0x1005b6b6
add dl, 4
jmp 0x1005b6b6
add dl, 2
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 5]
shr ecx, 3
movzx eax, dl
and ecx, 3
mov al, byte [eax + ecx*8 + 0x100943a0]
mov byte [edi + 0x17], al
shr al, 5
mov byte [esi + 5], al
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.1005ee00
push dword [esp + 0x24]
push edi
push ebx
call fcn.1005c380
add esp, 0x14
test eax, eax
js 0x1005b876
push dword [esp + 0x14]
push edi
push ebx
call fcn.1005a970
add esp, 0xc
test eax, eax
js 0x1005b876
cmp dword [edi + 0xc], 1
jne 0x1005b7a7
cmp byte [edi + 8], 0xf
jb 0x1005b72b
pop edi
pop esi
pop ebp
mov eax, 0x80200002
pop ebx
add esp, 0x10
ret
cmp dword [ebx + 0xc], 0
jbe 0x1005b825
mov eax, dword [ebx + 8]
push 0xf
push 0x10096210
mov al, byte [eax]
mov byte [edi + 0x14], al
inc dword [ebx + 8]
inc byte [edi + 8]
dec dword [ebx + 0xc]
call fcn.1005eb10
push 0xf
push eax
call fcn.1005eb10
movzx ecx, byte [edi + 0x14]
push ecx
push eax
call fcn.1005eb10
mov ecx, eax
add esp, 0x18
cmp byte [ecx], 0
jne 0x1005b77c
pop edi
pop esi
pop ebp
mov eax, 0x80200001
pop ebx
add esp, 0x10
ret
xor eax, eax
cmp byte [edi + 0xf7], 3
setne al
movzx eax, ax
push eax
push ecx
call fcn.1005eb10
lea ecx, [esp + 0x1c]
push ecx
movzx eax, word [eax + 1]
push eax
push dword [edi + 0xc]
call fcn.1005ee90
add esp, 0x14
mov ecx, dword [esp + 0x14]
movzx eax, word [ecx]
and eax, 0x7ff
mov dword [edi + 4], eax
mov al, byte [ecx + 2]
and al, 0xf
mov byte [edi + 0x18], al
mov al, byte [ecx + 2]
shr al, 4
and al, 7
mov byte [edi + 0x19], al
mov eax, dword [ebx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 7]
shr eax, 1
mov dword [edi + 0x54], eax
movzx eax, byte [ecx + 8]
mov dword [edi + 0x58], eax
movzx eax, byte [ecx + 9]
and eax, 0x7f
mov dword [edi + 0x5c], eax
movzx eax, byte [ecx + 0xa]
and eax, 3
mov dword [edi + 0x60], eax
movzx eax, byte [ecx + 0xa]
shr eax, 2
mov dword [edi + 0x64], eax
mov eax, dword [ebx]
test byte [eax + 8], 1
jne 0x1005b871
push ecx
push edi
push ebx
call fcn.1005dca0
mov eax, dword [edi + 0xc]
add esp, 0xc
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x1005b81e
jmp dword [eax*4 + 0x1005b93c]
pop edi
pop esi
pop ebp
mov eax, 0x80200000
pop ebx
add esp, 0x10
ret
push dword [esp + 0x14]
push edi
push dword [ebx + 4]
call fcn.1005d6c0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.1005ee30
add esp, 8
test al, al
je 0x1005b864
mov ecx, dword [edi + 0x24]
or dword [edi + 0x20], 0x200
mov dword [edi + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x28], ecx
add ecx, 0x14
mov dword [edi + 0x2c], ecx
mov eax, 0x100000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret