Function at 0x597b80
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005bf9f0
add esp, 0x10
cmp dword [ebp + 0x20], 0
je 0x597bb1
mov dword [ebp - 0x38], 0x20
jmp 0x597bb8
mov dword [ebp - 0x38], 0x40620
mov ecx, dword [ebp - 0x38]
push ecx
push 0x10
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00661c00
add esp, 0x1c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x34], 0
jmp 0x597bf2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x4c]
jge 0x597edf
mov eax, dword [ebp - 0x34]
movzx ecx, word [ebp + eax*2 - 0x8c]
imul edx, ecx, 0x3c
add edx, dword [0x11d7258]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
sar ecx, 8
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.006b79e0
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
sar ecx, 8
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
push edx
call fcn.006b79e0
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
sar ecx, 8
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.006b79e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jle 0x597cb1
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x2c]
jle 0x597c95
mov edx, dword [ebp - 0x30]
sar edx, 2
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
sar eax, 2
add edx, eax
mov dword [ebp - 0x3c], edx
jmp 0x597ca9
mov ecx, dword [ebp - 0x28]
sar ecx, 2
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sar edx, 2
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
jmp 0x597ce9
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x2c]
jle 0x597ccf
mov edx, dword [ebp - 0x28]
sar edx, 2
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sar eax, 2
add edx, eax
mov dword [ebp - 0x40], edx
jmp 0x597ce3
mov ecx, dword [ebp - 0x28]
sar ecx, 2
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
sar edx, 2
add ecx, edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 5
jne 0x597dd5
mov ecx, dword [ebp - 4]
push ecx
call fcn.0062a930
add esp, 4
test eax, eax
jne 0x597dd5
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x24]
mov eax, edx
imul eax, dword [ebp + 0x18]
cdq
idiv dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
cmp ecx, 8
je 0x597d49
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
cmp eax, 5
jne 0x597d5f
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 3]
cmp edx, 8
jne 0x597d5f
mov eax, dword [ebp - 0xc]
sar eax, 1
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x1e
jle 0x597d83
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0062ac60
add esp, 0x14
jmp 0x597dd0
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 1]
cmp eax, 8
je 0x597da7
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 5
jne 0x597da9
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 3]
cmp ecx, 8
jne 0x597da9
jmp 0x597dd0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0062ecf0
add esp, 0xc
push 0
push 0xa7
mov edx, dword [ebp - 4]
push edx
call fcn.00634680
add esp, 0xc
jmp 0x597eda
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
cmp ecx, 0xa
jne 0x597e2a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
movzx ecx, byte [eax]
cmp ecx, 0xa
jne 0x597e25
cmp dword [ebp - 0x24], 0x120
jge 0x597e25
imul edx, dword [0x119f220], 0x10dcd
add edx, 1
mov dword [0x119f220], edx
mov eax, dword [0x119f220]
sar eax, 7
movzx ecx, ax
and ecx, 7
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
mov word [eax + 0xc], cx
jmp 0x597eda
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 9
jne 0x597e81
mov eax, dword [ebp - 0x24]
sub eax, 0x100
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x597e4e
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x597e61
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x24]
mov eax, edx
imul eax, dword [ebp + 0x18]
cdq
idiv dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sar ecx, 1
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00668990
add esp, 0xc
jmp 0x597eda
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
cmp edx, 0x12
jne 0x597eda
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 4]
jne 0x597e96
jmp 0x597eda
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp - 0x24]
add ecx, 0x80
mov eax, ecx
imul eax, dword [ebp + 0x18]
cdq
idiv dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x24]
movzx ecx, byte [eax]
cmp ecx, 3
jne 0x597ec6
mov edx, dword [ebp - 0xc]
shl edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00573480
add esp, 0xc
jmp 0x597be9
cmp dword [ebp + 0x20], 0
jne 0x5980f2
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
sar eax, 0xa
mov word [ebp - 0x14], ax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0x14]
sar ecx, 0xa
mov word [ebp - 0x1c], cx
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x14]
sar edx, 0xa
mov word [ebp - 0x18], dx
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x14]
sar eax, 0xa
mov word [ebp - 0x20], ax
movsx ecx, word [ebp - 0x14]
test ecx, ecx
jge 0x597f2d
xor edx, edx
mov word [ebp - 0x14], dx
jmp 0x597f3f
movsx eax, word [ebp - 0x14]
cmp eax, 0x1f
jle 0x597f3f
mov ecx, 0x1f
mov word [ebp - 0x14], cx
movsx edx, word [ebp - 0x1c]
test edx, edx
jge 0x597f4f
xor eax, eax
mov word [ebp - 0x1c], ax
jmp 0x597f61
movsx ecx, word [ebp - 0x1c]
cmp ecx, 0x1f
jle 0x597f61
mov edx, 0x1f
mov word [ebp - 0x1c], dx
movsx eax, word [ebp - 0x18]
test eax, eax
jge 0x597f71
xor ecx, ecx
mov word [ebp - 0x18], cx
jmp 0x597f83
movsx edx, word [ebp - 0x18]
cmp edx, 0x1f
jle 0x597f83
mov eax, 0x1f
mov word [ebp - 0x18], ax
movsx ecx, word [ebp - 0x20]
test ecx, ecx
jge 0x597f93
xor edx, edx
mov word [ebp - 0x20], dx
jmp 0x597fa5
movsx eax, word [ebp - 0x20]
cmp eax, 0x1f
jle 0x597fa5
mov ecx, 0x1f
mov word [ebp - 0x20], cx
mov dl, byte [ebp - 0x14]
mov byte [ebp - 6], dl
jmp 0x597fb5
mov al, byte [ebp - 6]
add al, 1
mov byte [ebp - 6], al
movzx ecx, byte [ebp - 6]
movsx edx, word [ebp - 0x18]
cmp ecx, edx
jg 0x5980f2
mov al, byte [ebp - 0x1c]
mov byte [ebp - 5], al
jmp 0x597fd6
mov cl, byte [ebp - 5]
add cl, 1
mov byte [ebp - 5], cl
movzx edx, byte [ebp - 5]
movsx eax, word [ebp - 0x20]
cmp edx, eax
jg 0x5980ed
movzx ecx, byte [ebp - 5]
push ecx
movzx edx, byte [ebp - 6]
push edx
call fcn.006079c0
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x598006
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x5980e8
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
shl ecx, 4
mov edx, dword [0x2596fc8]
movzx eax, byte [edx + ecx + 0xd]
and eax, 1
je 0x5980da
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 2]
sub edx, dword [ebp + 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 4]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 6]
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.006b79e0
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x60]
push edx
call fcn.006b79e0
add esp, 4
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x64]
add esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
push eax
call fcn.006b79e0
add esp, 4
add esi, eax
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp + 0x14]
jge 0x5980da
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp - 0x48]
mov eax, edx
imul eax, dword [ebp + 0x18]
cdq
idiv dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x32
jle 0x5980da
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 6]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0xe]
push edx
call fcn.00607640
add esp, 0x18
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
jmp 0x597ffd
jmp 0x597fcd
jmp 0x597fad
pop esi
mov esp, ebp
pop ebp
ret