Function at 0x5b64e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc8
push ebp
push esi
push edi
mov edi, dword [esp + 0xd8]
xor esi, esi
mov ebp, dword [edi + 0x4c]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0x3c], esi
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
call fcn.005c8170
mov al, byte [edi + 4]
add esp, 4
test al, al
je 0x5b657a
mov al, byte [edi + 3]
test al, al
je 0x5b657a
mov al, byte [edi + 6]
test al, al
je 0x5b657a
cmp byte [edi + 2], 1
jne 0x5b657a
mov dx, word [edi + 0x1c]
cmp dx, word [edi + 0x14]
jne 0x5b657a
mov eax, dword [edi + 0x4c]
cmp dword [eax + 0x48], 1
je 0x5b657a
mov edx, dword [ebp + 0x44]
xor ecx, ecx
mov cl, byte [ebp + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.005b3860
mov ecx, dword [edi + 0x48]
add esp, 4
cmp eax, ecx
jne 0x5b657a
push ebp
push edi
call fcn.005b71f0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xc8
ret
mov al, byte [ebp + 1]
push ebx
test al, al
je 0x5b65ae
mov edi, dword [edi + 0x48]
xor ebx, ebx
cmp word [ebp + 0x14], bx
jbe 0x5b65b4
push ebx
push ebp
call fcn.005b4580
push eax
call fcn.005b3860
add esp, 0xc
cmp eax, edi
je 0x5b65b4
xor ecx, ecx
inc ebx
mov cx, word [ebp + 0x14]
cmp ebx, ecx
jl 0x5b658d
jmp 0x5b65b4
xor ebx, ebx
mov bx, word [edi + 0x10]
mov edx, dword [ebp + 0x44]
xor edi, edi
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
call fcn.005c6ce0
add esp, 4
dec ebx
xor eax, eax
mov dword [esp + 0x20], ebx
mov ax, word [ebp + 0x14]
lea ecx, [ebx + 3]
cmp ecx, eax
jle 0x5b65e3
lea ebx, [eax - 2]
mov dword [esp + 0x20], ebx
cmp ebx, edi
jge 0x5b65ed
xor ebx, ebx
mov dword [esp + 0x20], ebx
xor edi, edi
jmp 0x5b65f5
mov ebp, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebp + 0x14]
cmp ebx, eax
jge 0x5b6619
push ebx
push ebp
mov dword [esp + edi + 0x70], ebx
call fcn.005b4580
push eax
mov dword [esp + edi + 0x60], eax
call fcn.005b3860
add esp, 0xc
jmp 0x5b6634
jne 0x5b66a0
mov eax, dword [ebp + 0x44]
xor edx, edx
mov dl, byte [ebp + 8]
lea ecx, [edx + eax + 8]
push ecx
call fcn.005b3860
add esp, 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea ebp, [esp + edi + 0x80]
push edx
push ebp
push eax
push ecx
mov dword [esp + edi + 0xa8], eax
call fcn.005b4400
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5b6e54
mov edx, dword [ebp]
mov esi, dword [esp + 0x3c]
mov dword [esp + edi + 0x8c], eax
mov eax, dword [esp + 0x14]
mov word [edx + 0x10], bx
mov ebp, dword [ebp]
inc eax
xor ecx, ecx
mov cl, byte [ebp + 2]
mov dword [esp + 0x14], eax
xor eax, eax
add ecx, esi
mov ax, word [ebp + 0x14]
add edi, 4
inc ebx
cmp edi, 0xc
lea esi, [ecx + eax + 1]
mov dword [esp + 0x3c], esi
jl 0x5b65f1
lea edi, [esi + 1]
mov esi, dword [esp + 0x24]
xor edx, edx
and edi, 0xfffffffe
mov dx, word [esi + 0x14]
mov al, byte [esi + 0x13]
add edx, edi
neg al
sbb eax, eax
and eax, edi
lea ecx, [eax + edx*8 + 0xf0]
push ecx
call fcn.005a75c0
add esp, 4
mov dword [esp + 0x40], eax
test eax, eax
jne 0x5b66dd
mov esi, 7
jmp 0x5b6e54
lea eax, [eax + edi*4]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x28], eax
lea edx, [eax + edi*4]
xor eax, eax
mov ax, word [esi + 0x14]
mov dword [esp + 0x68], edx
mov edx, 2
mov edi, dword [ecx - 4]
add ecx, 4
dec edx
lea edi, [edi + eax + 0x50]
mov dword [ecx - 4], edi
jne 0x5b66fa
mov ecx, dword [esp + 0x70]
mov dl, byte [esi + 0x13]
test dl, dl
lea ecx, [ecx + eax + 0x50]
mov dword [esp + 0x3c], ecx
je 0x5b6726
lea edx, [ecx + eax*4]
add eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
jle 0x5b6785
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + edx*4 + 0x68]
xor ecx, ecx
mov cx, word [ebx + 0x14]
add eax, ecx
mov edi, eax
mov dword [esp + edx*4 + 0x8c], eax
sub edi, ecx
xor ecx, ecx
mov dword [eax + 0x44], edi
mov cx, word [ebx + 0x14]
mov esi, dword [esp + edx*4 + 0x80]
add ecx, 0x50
mov ebp, ecx
mov esi, dword [esi + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov esi, eax
mov cx, word [ebx + 0x14]
sub esi, ecx
inc edx
mov dword [eax + 0x44], esi
mov eax, dword [esp + 0x14]
cmp edx, eax
jl 0x5b6730
mov edx, dword [esp + 0xdc]
xor ebx, ebx
xor edi, edi
mov cl, byte [edx + 4]
mov dword [esp + 0x48], edi
mov eax, ecx
and eax, 0xff
shl eax, 2
cmp byte [edx + 6], 0
mov dword [esp + 0x50], eax
je 0x5b67b7
test cl, cl
mov dword [esp + 0x34], 1
jne 0x5b67bb
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebx
cmp ecx, ebx
jle 0x5b6958
mov ebp, dword [esp + ebx*4 + 0x8c]
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], 0
mov ax, word [ebp + 0x14]
mov dl, byte [ebp + 2]
add eax, edx
test eax, eax
mov dword [esp + 0x30], eax
jle 0x5b6877
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
sub eax, ecx
lea esi, [ecx + edi*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.005b6ec0
push eax
push ebp
mov dword [esi], eax
call fcn.005b5210
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
add esp, 0x10
mov dword [ecx + esi], eax
mov al, byte [edx + 0x13]
test al, al
je 0x5b685e
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov byte [eax + edi], bl
mov cl, byte [ebp + 2]
xor eax, eax
test ecx, ecx
jle 0x5b685e
mov ebx, dword [esi]
lea edx, [ebp + 0x18]
cmp dword [edx], ebx
je 0x5b6852
inc eax
add edx, 8
cmp eax, ecx
jl 0x5b6844
jmp 0x5b685a
mov ecx, dword [esp + 0x44]
mov byte [ecx + edi], 0xff
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc edi
add esi, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x5b6804
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x14]
dec edx
cmp ebx, edx
jge 0x5b6943
mov esi, dword [esp + ebx*4 + 0x54]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.005b5210
mov ecx, dword [esp + 0x3c]
add esp, 8
test ecx, ecx
je 0x5b68b6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call fcn.005b5d70
add esp, 0xc
jmp 0x5b6943
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x38]
add edx, ecx
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x40]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
add edx, esi
mov dword [ebx + edi*4], edx
mov dl, byte [ecx + 0x13]
test dl, dl
je 0x5b6903
mov edx, dword [esp + 0x44]
mov byte [edx + edi], 0xff
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
call fcn.005b5d70
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [eax + edi*4]
sub ecx, esi
mov dword [eax + edi*4], ecx
mov al, byte [ebp + 4]
test al, al
jne 0x5b693a
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebx + edi*4]
xor edx, edx
mov dl, byte [ebp + 8]
mov edx, dword [edx + eax + 8]
mov dword [ecx], edx
mov ebx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jl 0x5b67cb
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
xor ecx, ecx
xor ebx, ebx
mov cx, word [edx + 0x16]
lea eax, [ecx + eax - 0xc]
xor ecx, ecx
mov dword [esp + 0x30], eax
xor eax, eax
test edi, edi
jle 0x5b69a5
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov edx, dword [esi]
lea eax, [eax + edx + 2]
cmp eax, dword [esp + 0x30]
jle 0x5b699d
sub eax, edx
mov dword [esp + ebx*4 + 0x68], ecx
test ebp, ebp
mov dword [esp + ebx*4 + 0x54], eax
je 0x5b699a
dec ecx
sub esi, 4
xor eax, eax
inc ebx
inc ecx
add esi, 4
cmp ecx, edi
jl 0x5b697c
mov dword [esp + ebx*4 + 0x54], eax
mov dword [esp + ebx*4 + 0x68], edi
inc ebx
mov dword [esp + 0x30], ebx
lea eax, [ebx - 1]
test eax, eax
jle 0x5b6a31
lea edi, [eax*4 - 4]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + edi + 0x58]
mov esi, dword [esp + edi + 0x54]
mov eax, dword [esp + edi + 0x68]
mov ebp, dword [esp + 0x34]
dec eax
mov ecx, eax
sub ecx, ebp
inc ecx
test edx, edx
je 0x5b69f9
mov ebp, esi
sub ebp, dword [ebx + eax*4]
mov ebx, dword [ebx + ecx*4]
sub ebp, 2
lea ebx, [ebx + edx + 2]
cmp ebx, ebp
jg 0x5b6a17
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + ecx*4]
mov ebp, dword [ebx + eax*4]
mov eax, dword [esp + edi + 0x68]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, ebp
add esi, ecx
dec eax
mov dword [esp + edi + 0x68], eax
jmp 0x5b69d0
mov eax, dword [esp + 0x10]
mov dword [esp + edi + 0x58], edx
mov dword [esp + edi + 0x54], esi
sub edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x5b69c4
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0xdc]
xor eax, eax
xor edi, edi
mov ecx, dword [edx + 0x44]
test ebx, ebx
mov al, byte [ecx]
mov dword [esp + 0x4c], eax
jle 0x5b6aed
cmp edi, dword [esp + 0x14]
jge 0x5b6a93
mov eax, dword [esp + edi*4 + 0x80]
mov edx, dword [esp + edi*4 + 0x98]
mov dword [esp + edi*4 + 0x54], eax
mov dword [esp + 0x10], eax
mov dword [esp + edi*4 + 0xa4], edx
mov dword [esp + edi*4 + 0x80], 0
mov eax, dword [eax + 0x44]
push eax
call fcn.005c8170
mov esi, eax
add esp, 4
test esi, esi
jne 0x5b6e54
jmp 0x5b6ac9
mov ecx, dword [esp + edi*4 + 0xa0]
lea eax, [esp + edi*4 + 0xa4]
push 0
push ecx
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.005b57c0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5b6e54
mov ecx, dword [esp + 0x10]
mov dword [esp + edi*4 + 0x54], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
inc eax
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.005b40f0
add esp, 8
inc edi
cmp edi, ebx
jl 0x5b6a4d
cmp edi, dword [esp + 0x14]
jge 0x5b6b2b
lea ebp, [esp + edi*4 + 0x80]
mov ecx, dword [ebp]
push ecx
call fcn.005b5300
mov esi, eax
add esp, 4
test esi, esi
jne 0x5b6e54
mov edx, dword [ebp]
push edx
call fcn.005b38c0
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [ebp], esi
inc edi
add ebp, 4
cmp edi, eax
jl 0x5b6afa
lea ecx, [ebx - 1]
xor eax, eax
test ecx, ecx
jle 0x5b6bc4
mov edi, dword [esp + eax*4 + 0xa4]
lea esi, [esp + eax*4 + 0xa4]
lea ebp, [eax + 1]
mov dword [esp + 0x30], esi
cmp ebp, ebx
mov dword [esp + 0x1c], edi
mov edx, eax
mov dword [esp + 0x7c], ebp
mov ecx, ebp
jge 0x5b6bb7
add esi, 4
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x10]
mov esi, dword [esi]
cmp esi, edi
jae 0x5b6b72
mov edx, ecx
mov edi, esi
mov esi, dword [esp + 0x10]
inc ecx
add esi, 4
cmp ecx, ebx
mov dword [esp + 0x10], esi
jl 0x5b6b64
cmp edx, eax
jle 0x5b6bb7
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + edx*4 + 0xa4]
mov esi, dword [esp + eax*4 + 0x54]
lea ecx, [esp + edx*4 + 0xa4]
lea edx, [esp + edx*4 + 0x54]
lea eax, [esp + eax*4 + 0x54]
mov dword [ebp], edi
mov ebp, dword [esp + 0x7c]
mov edi, dword [edx]
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [edx], esi
mov eax, ebp
lea ecx, [ebx - 1]
cmp eax, ecx
jl 0x5b6b38
mov esi, dword [esp + 0x2c]
xor edi, edi
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], eax
jle 0x5b6da4
jmp 0x5b6bde
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + eax*4 + 0x54]
mov eax, dword [esp + eax*4 + 0x68]
lea edx, [ecx + edi*4]
mov ecx, dword [esp + 0x40]
push edx
mov dword [esp + 0x14], eax
lea edx, [ecx + edi*4]
sub eax, edi
push edx
push eax
push ebp
call fcn.005b70f0
mov eax, dword [esp + 0x34]
add esp, 0x10
mov cl, byte [eax + 0x13]
test cl, cl
je 0x5b6c61
mov eax, dword [esp + 0x10]
mov ebx, edi
cmp edi, eax
jge 0x5b6c61
mov ecx, dword [esp + 0x44]
mov al, byte [ebx + ecx]
cmp al, 0xff
je 0x5b6c3c
mov ecx, dword [ebp + 0x48]
and eax, 0xff
mov edx, dword [esp + eax*4 + 0x8c]
mov eax, dword [edx + 0x48]
cmp eax, ecx
je 0x5b6c58
mov ecx, ebx
sub ecx, edi
push ecx
push ebp
call fcn.005b6f10
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b6e54
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x5b6c1b
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
lea edx, [esi - 1]
cmp eax, edx
jge 0x5b6d93
cmp edi, dword [esp + 0x48]
jge 0x5b6d93
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov dl, byte [ebp + 4]
mov eax, dword [eax + edi*4]
mov esi, dword [ecx + edi*4]
add eax, ebx
test dl, dl
mov dword [esp + 0x10], eax
jne 0x5b6cad
mov ecx, dword [ebp + 0x44]
mov edx, dword [esi]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x10]
xor ecx, ecx
jmp 0x5b6d1e
mov edx, dword [esp + 0x34]
test edx, edx
je 0x5b6d0b
mov ecx, dword [ecx + edi*4 - 4]
dec edi
lea eax, [esp + 0xb8]
push eax
push ecx
push ebp
call fcn.005b45b0
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
lea esi, [edx + ebx]
mov edx, dword [esp + 0xd0]
push 0
push 0
push ecx
push edx
push 0
push esi
push eax
call fcn.005b5590
mov eax, dword [esp + 0x3c]
add esp, 0x2c
add ebx, eax
xor ecx, ecx
mov dword [esp + 0x38], ebx
jmp 0x5b6d1e
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub esi, 4
add ecx, edx
add edx, eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
push 4
push ecx
push eax
mov eax, dword [esp + 0x24]
push esi
push edx
push eax
call fcn.005b5fa0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x5b6e54
mov ecx, dword [ebp + 0x48]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
push ecx
push ebx
push esi
call fcn.005b6ec0
add esp, 8
push eax
call fcn.005b40c0
mov edx, dword [esp + 0x2c]
add esp, 8
mov al, byte [edx + 0x13]
test al, al
je 0x5b6d85
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x5b6d85
push ebx
push esi
call fcn.005b6f10
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b6e54
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
inc edi
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, esi
mov dword [esp + 0x1c], eax
jl 0x5b6bda
test byte [esp + 0x4c], 8
jne 0x5b6dc6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x88]
mov eax, dword [esp + esi*4 + 0x50]
mov edx, dword [ecx + 0x44]
mov ecx, dword [eax + 0x44]
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [eax + 2]
mov edx, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, edx
mov edx, dword [esp + esi*4 + 0xa0]
push edx
jne 0x5b6df7
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
jmp 0x5b6e01
push ecx
push eax
call fcn.005b6ec0
add esp, 8
push eax
call fcn.005b40c0
add esp, 8
xor edi, edi
test esi, esi
jle 0x5b6e31
lea ebx, [esp + 0x54]
mov eax, dword [ebx]
push eax
call fcn.005b6fc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5b6e54
mov eax, dword [esp + 0x2c]
inc edi
add ebx, 4
cmp edi, eax
jl 0x5b6e14
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b6fc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x5b6e54
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.005b6460
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x40]
push eax
call fcn.005a75f0
mov ebx, dword [esp + 0x18]
add esp, 4
test ebx, ebx
jle 0x5b6e81
lea edi, [esp + 0x80]
mov ecx, dword [edi]
push ecx
call fcn.005b38c0
add esp, 4
add edi, 4
dec ebx
jne 0x5b6e70
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x5b6e9e
lea edi, [esp + 0x54]
mov edx, dword [edi]
push edx
call fcn.005b38c0
add esp, 4
add edi, 4
dec ebx
jne 0x5b6e8d
mov eax, dword [esp + 0x18]
push eax
call fcn.005b38c0
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc8
ret