Function at 0x539cea0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1f0]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
jne 0x539cefd
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x28]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
je 0x539cf06
cmp dword [ebp + 0x14], 0
je 0x539cf11
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x539cf11
cmp dword [ecx], 1
jg 0x539cefd
mov edi, dword [edx + 0x44]
mov eax, dword [edx + 0x28]
test edi, edi
je 0x539cf21
cmp dword [esi + 0x44], 0
jne 0x539cefd
cmp dword [edx + 0x48], 0
jne 0x539cefd
movzx edx, word [esi + 6]
test edx, 0x1000
je 0x539cf37
test edi, edi
jne 0x539cefd
cmp dword [eax], 0
je 0x539cefd
mov eax, dword [esp + 0x14]
movzx eax, word [eax + 6]
test al, 1
jne 0x539cefd
test edi, edi
je 0x539cf57
cmp dword [ecx], 1
jg 0x539cefd
cmp dword [ebp + 0x10], 0
jne 0x539cefd
movzx edx, word [esi + 6]
and edx, 1
mov dword [esp + 0x30], edx
je 0x539cf6a
cmp dword [ebp + 0x14], 0
jne 0x539cefd
cmp dword [esi + 0x38], 0
je 0x539cf7a
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x38], 0
jne 0x539cefd
cmp dword [ebp + 0x10], 0
mov edx, dword [esp + 0x14]
je 0x539cf8e
cmp dword [edx + 0x38], 0
jne 0x539cefd
test edi, edi
je 0x539cfac
cmp dword [esi + 0x2c], 0
jne 0x539cefd
test edi, edi
je 0x539cfac
cmp word [esp + 0x30], 0
jne 0x539cefd
test eax, 0x800
jne 0x539cefd
movzx eax, word [esi + 6]
test eax, 0x800
je 0x539cfcc
cmp dword [edx + 0x3c], 0
jne 0x539cefd
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x38], eax
jne 0x539cefd
cmp dword [edx + 0x3c], 0
je 0x539d07a
cmp dword [edx + 0x38], 0
jne 0x539cefd
cmp dword [ebp + 0x10], 0
jne 0x539cefd
cmp word [esp + 0x30], 0
jne 0x539cefd
cmp dword [ecx], 1
jne 0x539cefd
mov eax, edx
mov dl, 5
test byte [eax + 6], dl
jne 0x539cefd
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x539d030
cmp byte [eax + 4], 0x74
jne 0x539cefd
mov edi, dword [eax + 0x28]
cmp dword [edi], 1
jl 0x539cefd
mov edi, dword [esp + 0x14]
mov edi, dword [edi]
mov eax, dword [eax]
mov edi, dword [edi]
cmp edi, dword [eax]
jne 0x539cefd
mov eax, ecx
test eax, eax
jne 0x539d016
mov eax, dword [esi + 0x38]
test eax, eax
je 0x539d07a
cmp dword [eax], ecx
jle 0x539d07a
mov eax, dword [eax + 8]
add eax, 0x14
cmp word [eax], 0
je 0x539cefd
mov edx, dword [esi + 0x38]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x539d065
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + eax + 0x10]
push 0
lea edi, [ebx + eax + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0x15
mov dword [esp + 0x34], edi
mov dword [eax + 0x1f0], ecx
call fcn.05392230
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x1f0], edx
mov eax, dword [ecx + 0x3c]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x539d159
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x48]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x44]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x40], edx
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call fcn.05387090
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 0x48], edx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x539d11c
mov edx, dword [esp + 0x30]
mov dword [esi + 0x3c], edx
jmp 0x539d130
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x3c], ecx
test ecx, ecx
je 0x539d12a
mov dword [ecx + 0x40], eax
mov dword [eax + 0x40], esi
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x40], 0
jne 0x539d4b4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x539d0c3
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [ebx + eax + 0xc]
call fcn.0537c5b0
mov eax, dword [edi]
mov ecx, dword [esp + 0x18]
call fcn.0537c5b0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.0537c5b0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov dword [ebx + eax + 0xc], ecx
mov dword [ebx + eax + 0x14], ecx
lea ebx, [ebx + eax + 0x18]
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x539d1f4
movzx ecx, word [eax + 0x28]
cmp ecx, 1
jne 0x539d1e9
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x19c]
test ecx, ecx
jne 0x539d1cc
mov ecx, edx
mov edx, dword [ecx + 0x210]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x210], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x539d204
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x539d204
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x28]
mov esi, dword [eax]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov byte [esp + 0x13], 0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x539d231
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x539d250
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.0539bb60
add esp, 4
mov dword [ebx + 0x28], eax
mov dword [esp + 0x1c], eax
test eax, eax
je 0x539d4a7
cmp esi, 1
jle 0x539d278
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0539aa70
add esp, 0xc
mov dword [ebx + 0x28], eax
cmp byte [edi + 0x40], 0
mov dword [esp + 0x1c], eax
jne 0x539d4a7
test esi, esi
jle 0x539d2e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x28], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
jmp 0x539d2a0
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x18]
call fcn.0537cdf0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.05351b20
add dword [esp + 0x30], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x539d2a0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
cmp dword [ecx], eax
jle 0x539d363
mov dword [esp + 0x28], eax
lea esp, [esp]
mov edx, dword [ecx + 8]
cmp dword [eax + edx + 4], 0
jne 0x539d34b
mov ebx, dword [eax + edx + 8]
push esi
call fcn.053837f0
add esp, 4
mov esi, eax
call fcn.05373070
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov dword [edx + ecx + 4], esi
mov esi, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
inc edx
add eax, 0x18
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
cmp edx, dword [ecx]
jl 0x539d310
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.053949d0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x539d3a7
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x30]
push eax
push ecx
push edx
push esi
call fcn.053949d0
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x34]
push eax
push ecx
push edx
push esi
call fcn.05390150
add esp, 0x20
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x539d3ba
mov dword [ebx + 0x38], eax
mov dword [edi + 0x38], 0
jmp 0x539d3d3
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x539d3d3
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.053949d0
add esp, 0x10
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x539d3ee
push 0
push 0
push eax
push esi
call fcn.053871d0
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x539d3f6
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x2c]
je 0x539d44f
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x2c], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x34]
push edx
push eax
push ecx
push esi
call fcn.05390150
push 0
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x34]
push 0
push eax
push esi
call fcn.053871d0
mov edx, dword [ebx + 0x34]
push eax
push edx
mov eax, esi
call fcn.05387420
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x30]
push 0
push eax
push esi
call fcn.05384690
add esp, 0x34
mov dword [ebx + 0x30], eax
jmp 0x539d474
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.05390150
mov ecx, dword [esp + 0x38]
push ecx
mov dword [ebx + 0x2c], eax
push eax
mov eax, esi
call fcn.05387420
add esp, 0x18
mov dword [ebx + 0x2c], eax
mov dx, word [edi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [edi + 0x44]
test eax, eax
je 0x539d491
mov dword [ebx + 0x44], eax
mov dword [edi + 0x44], 0
mov ebx, dword [ebx + 0x3c]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x539d200
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
call fcn.05383d60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret