Function at 0x10001330
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10001b61
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10001b61
mov ecx, dword [esp + 0x10]
cmp ecx, 5
ja 0x10001b61
cmp dword [edi + 0xc], 0
je 0x10001b5a
cmp dword [edi], 0
jne 0x1000136f
cmp dword [edi + 4], 0
jne 0x10001b5a
mov eax, dword [esi + 4]
cmp eax, 0x29a
jne 0x10001382
cmp ecx, 4
jne 0x10001b5a
cmp dword [edi + 0x10], 0
jne 0x10001397
mov dword [edi + 0x18], 0x302f99c
pop edi
mov eax, 0xfffffffb
pop esi
ret
cmp eax, 0x2a
mov edx, dword [esi + 0x28]
push ebx
mov dword [esp + 0x10], edx
mov edx, 2
push ebp
mov dword [esi], edi
mov dword [esi + 0x28], ecx
lea ebx, [edx - 1]
jne 0x1000163b
cmp dword [esi + 0x18], edx
jne 0x100015b3
mov dword [edi + 0x30], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0x1f
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0x8b
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 8
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
test eax, eax
mov ebp, dword [esi + 0x14]
jne 0x10001482
mov eax, dword [esi + 8]
mov byte [eax + ebp], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x84]
cmp eax, 9
mov ecx, dword [esi + 0x14]
jne 0x1000144b
mov eax, edx
jmp 0x10001460
cmp dword [esi + 0x88], edx
jge 0x1000145b
cmp eax, edx
jl 0x1000145b
xor eax, eax
jmp 0x10001460
mov eax, 4
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0xb
add dword [esi + 0x14], ebx
mov dword [esi + 4], 0x71
jmp 0x1000163b
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x2c]
neg edx
sbb dl, dl
and edx, 0x10
neg ecx
sbb cl, cl
and ecx, 2
add dl, cl
mov ecx, dword [eax + 0x1c]
neg ecx
sbb cl, cl
and ecx, 8
add dl, cl
mov ecx, dword [eax + 0x10]
neg ecx
sbb cl, cl
and ecx, 4
add dl, cl
cmp dword [eax], 0
mov ecx, dword [esi + 8]
setne al
add dl, al
mov byte [ecx + ebp], dl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
movzx edx, byte [edx + 4]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [ecx + 5]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov edx, dword [esi + 0x1c]
movzx edx, byte [edx + 6]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [ecx + 7]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x84]
cmp eax, 9
mov ecx, dword [esi + 0x14]
jne 0x10001522
mov eax, 2
jmp 0x10001539
cmp dword [esi + 0x88], 2
jge 0x10001534
cmp eax, 2
jl 0x10001534
xor eax, eax
jmp 0x10001539
mov eax, 4
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0xc]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
mov edx, dword [esi + 0x14]
je 0x10001581
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0x15]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x100015a0
mov ecx, dword [esi + 8]
test ecx, ecx
mov eax, dword [edi + 0x30]
jne 0x10001598
xor eax, eax
jmp 0x1000159d
call fcn.10004cd0
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
jmp 0x1000163b
mov ecx, dword [esi + 0x30]
sub ecx, 8
shl ecx, 0xc
add ecx, 0x800
cmp dword [esi + 0x88], edx
jge 0x100015e9
mov ebp, dword [esi + 0x84]
cmp ebp, edx
jl 0x100015e9
cmp ebp, 6
jge 0x100015dd
mov eax, ebx
jmp 0x100015eb
xor eax, eax
cmp ebp, 6
setne al
add eax, edx
jmp 0x100015eb
xor eax, eax
shl eax, 6
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x100015f9
or ecx, 0x20
mov eax, 0x8421085
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, ebx
mov eax, ecx
shl ecx, 5
sub ecx, eax
mov eax, esi
mov dword [esi + 4], 0x71
call fcn.100012b0
cmp dword [esi + 0x6c], 0
je 0x10001638
movzx ecx, word [edi + 0x32]
call fcn.100012b0
movzx ecx, word [edi + 0x30]
call fcn.100012b0
mov dword [edi + 0x30], ebx
cmp dword [esi + 4], 0x45
jne 0x1000170c
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x10001705
movzx ecx, word [eax + 0x14]
cmp dword [esi + 0x20], ecx
mov ebp, dword [esi + 0x14]
jae 0x100016c9
mov edi, edi
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x100016a0
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x10001691
cmp eax, ebp
jbe 0x10001691
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x10001685
xor eax, eax
jmp 0x1000168e
mov edx, eax
mov eax, ebx
call fcn.10004cd0
mov dword [edi + 0x30], eax
call fcn.100012e0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
mov ebp, eax
je 0x100016c9
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [esi + 0x20]
mov dl, byte [edx + ecx]
mov ebx, dword [esi + 8]
mov byte [eax + ebx], dl
mov eax, 1
add dword [esi + 0x14], eax
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
movzx ecx, word [eax + 0x14]
cmp dword [esi + 0x20], ecx
jb 0x10001660
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x100016f3
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x100016f3
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov edx, eax
mov eax, dword [edi + 0x30]
jne 0x100016eb
xor eax, eax
jmp 0x100016f0
call fcn.10004cd0
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x1000170c
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
cmp dword [esi + 4], 0x49
jne 0x100017c6
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x1c], 0
je 0x100017bf
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x10001766
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x10001757
cmp eax, ebp
jbe 0x10001757
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x1000174b
xor eax, eax
jmp 0x10001754
mov edx, eax
mov eax, ebx
call fcn.10004cd0
mov dword [edi + 0x30], eax
call fcn.100012e0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
mov ebp, eax
je 0x10001789
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x1c]
movzx ebx, byte [edx + ecx]
add ecx, 1
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
add dword [esi + 0x14], 1
test ebx, ebx
jne 0x10001726
jmp 0x1000178e
mov ebx, 1
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x100017b8
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x100017b8
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov edx, eax
mov eax, dword [edi + 0x30]
jne 0x100017b0
xor eax, eax
jmp 0x100017b5
call fcn.10004cd0
mov dword [edi + 0x30], eax
test ebx, ebx
jne 0x100017c6
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x5b
cmp dword [esi + 4], 0x5b
jne 0x1000187d
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x10001876
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x10001820
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x10001811
cmp eax, ebp
jbe 0x10001811
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x10001805
xor eax, eax
jmp 0x1000180e
mov edx, eax
mov eax, ebx
call fcn.10004cd0
mov dword [edi + 0x30], eax
call fcn.100012e0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
mov ebp, eax
je 0x10001843
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x24]
movzx ebx, byte [edx + ecx]
add ecx, 1
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
add dword [esi + 0x14], 1
test ebx, ebx
jne 0x100017e0
jmp 0x10001848
mov ebx, 1
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x10001872
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x10001872
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov edx, eax
mov eax, dword [edi + 0x30]
jne 0x1000186a
xor eax, eax
jmp 0x1000186f
call fcn.10004cd0
mov dword [edi + 0x30], eax
test ebx, ebx
jne 0x1000187d
mov dword [esi + 4], 0x67
cmp dword [esi + 4], 0x67
jne 0x100018d5
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x100018ce
mov ecx, dword [esi + 0x14]
add ecx, 2
cmp ecx, dword [esi + 0xc]
jbe 0x1000189c
call fcn.100012e0
mov eax, dword [esi + 0x14]
lea edx, [eax + 2]
cmp edx, dword [esi + 0xc]
ja 0x100018d5
mov dl, byte [edi + 0x30]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
mov edx, dword [esi + 8]
mov ecx, 1
add dword [esi + 0x14], ecx
mov eax, dword [esi + 0x14]
mov bl, byte [edi + 0x31]
mov byte [eax + edx], bl
add dword [esi + 0x14], ecx
mov dword [edi + 0x30], 0
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], 0
je 0x100018f4
call fcn.100012e0
cmp dword [edi + 0x10], 0
jne 0x10001942
mov dword [esi + 0x28], 0xffffffff
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
cmp dword [edi + 4], 0
jne 0x10001942
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 4
setle cl
lea edx, [eax + eax]
mov eax, dword [esp + 0x18]
lea ebx, [eax + eax]
sub ecx, 1
and ecx, 9
sub edx, ecx
xor ecx, ecx
cmp eax, 4
setle cl
sub ecx, 1
and ecx, 9
sub ebx, ecx
cmp ebx, edx
jg 0x10001946
cmp eax, 4
je 0x10001946
pop ebp
pop ebx
mov dword [edi + 0x18], 0x302f99c
pop edi
mov eax, 0xfffffffb
pop esi
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
cmp ecx, 0x29a
jne 0x10001968
cmp dword [edi + 4], 0
je 0x1000196e
pop ebp
pop ebx
mov dword [edi + 0x18], 0x302f99c
pop edi
mov eax, 0xfffffffb
pop esi
ret
cmp dword [edi + 4], 0
jne 0x10001988
cmp dword [esi + 0x74], 0
jne 0x10001988
test eax, eax
je 0x10001a66
cmp ecx, 0x29a
je 0x10001a66
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x100019a4
mov edx, dword [esp + 0x18]
push edx
mov eax, esi
call fcn.10002f30
add esp, 4
jmp 0x100019d5
cmp eax, 3
jne 0x100019ba
mov ebx, dword [esp + 0x18]
push ebx
mov eax, esi
call fcn.10002bd0
add esp, 4
jmp 0x100019d9
mov eax, dword [esi + 0x84]
mov ecx, dword [esp + 0x18]
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x302cf10]
push ecx
push esi
call edx
add esp, 8
mov ebx, dword [esp + 0x18]
cmp eax, 2
je 0x100019e3
cmp eax, 3
jne 0x100019ea
mov dword [esi + 4], 0x29a
xor ebp, ebp
cmp eax, ebp
je 0x10001b43
cmp eax, 2
je 0x10001b43
cmp eax, 1
jne 0x10001a66
cmp ebx, eax
jne 0x10001a0f
mov eax, esi
call fcn.10004160
jmp 0x10001a58
cmp ebx, 5
je 0x10001a58
push ebp
push ebp
xor ecx, ecx
mov eax, esi
call fcn.100040d0
add esp, 8
cmp ebx, 3
jne 0x10001a58
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
mov word [ecx + eax*2 - 2], bp
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
lea eax, [edx + edx - 2]
push eax
push ebp
push ecx
call fcn.10017ae1
add esp, 0xc
cmp dword [esi + 0x74], ebp
jne 0x10001a58
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x16b4], ebp
call fcn.100012e0
cmp dword [edi + 0x10], ebp
je 0x100018e6
cmp dword [esp + 0x18], 4
jne 0x100018ed
mov eax, dword [esi + 0x18]
test eax, eax
jg 0x10001a82
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
ret
cmp eax, 2
jne 0x10001b11
mov edx, dword [esi + 0x14]
mov cl, byte [edi + 0x30]
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
mov edx, dword [esi + 8]
mov eax, 1
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 0x31]
mov ecx, dword [esi + 0x14]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 0x32]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 0x33]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 8]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 9]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 0xa]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
movzx ebx, byte [edi + 0xb]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [ecx + edx], bl
add dword [esi + 0x14], eax
jmp 0x10001b25
movzx ecx, word [edi + 0x32]
mov eax, esi
call fcn.100012b0
movzx ecx, word [edi + 0x30]
call fcn.100012b0
call fcn.100012e0
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x10001b36
neg eax
mov dword [esi + 0x18], eax
pop ebp
xor eax, eax
cmp dword [esi + 0x14], eax
pop ebx
pop edi
sete al
pop esi
ret
cmp dword [edi + 0x10], ebp
jne 0x100018ed
pop ebp
pop ebx
pop edi
mov dword [esi + 0x28], 0xffffffff
xor eax, eax
pop esi
ret
mov dword [edi + 0x18], 0x302f96c
pop edi
mov eax, 0xfffffffe
pop esi
ret