Function at 0x4583a0
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 + 0x20c]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
jne 0x458402
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x28]
lea ebx, [ebx + ebx*8]
add ebx, ebx
add ebx, ebx
add ebx, ebx
cmp dword [ebp + 0x10], 0
mov edx, dword [ebx + ecx + 0x34]
mov edi, dword [ebx + ecx + 0x1c]
lea eax, [ebx + ecx + 0x1c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
je 0x45840b
cmp dword [ebp + 0x14], 0
je 0x458416
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x458416
cmp byte [ecx], 1
ja 0x458402
mov edx, dword [edi + 0x48]
mov eax, dword [edi + 0x28]
test edx, edx
je 0x458426
cmp dword [esi + 0x48], 0
jne 0x458402
cmp dword [edi + 0x4c], 0
jne 0x458402
cmp dword [esi + 0x44], 0
je 0x458436
test edx, edx
jne 0x458402
cmp byte [eax], 0
je 0x458402
test byte [edi + 6], 1
jne 0x458402
test edx, edx
je 0x458450
cmp byte [ecx], 1
ja 0x458402
cmp dword [ebp + 0x10], 0
jne 0x458402
mov ax, word [esi + 6]
and ax, 1
mov word [esp + 0x12], ax
je 0x458465
cmp dword [ebp + 0x14], 0
jne 0x458402
cmp dword [esi + 0x38], 0
je 0x458471
cmp dword [edi + 0x38], 0
jne 0x458402
cmp dword [ebp + 0x10], 0
je 0x45847d
cmp dword [edi + 0x38], 0
jne 0x458402
test edx, edx
je 0x458498
cmp dword [esi + 0x2c], 0
jne 0x458402
test edx, edx
je 0x458498
test ax, ax
jne 0x458402
test byte [ebx + ecx + 0x28], 0x20
lea eax, [ebx + ecx + 0x28]
mov dword [esp + 0x38], eax
jne 0x458402
cmp dword [edi + 0x3c], 0
je 0x458545
cmp dword [edi + 0x38], 0
jne 0x458402
cmp dword [ebp + 0x10], 0
jne 0x458402
cmp word [esp + 0x12], 0
jne 0x458402
cmp byte [ecx], 1
jne 0x458402
mov eax, edi
test byte [eax + 6], 5
jne 0x458402
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x4584fb
cmp byte [eax + 4], 0x72
jne 0x458402
mov edx, dword [eax + 0x28]
cmp byte [edx], 1
jb 0x458402
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x458402
mov eax, ecx
test eax, eax
jne 0x4584e0
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x458545
cmp dword [ecx], eax
jle 0x458545
mov ecx, dword [ecx + 8]
add ecx, 0x14
lea esp, [esp]
cmp word [ecx], 0
je 0x458402
mov edx, dword [esi + 0x38]
inc eax
add ecx, 0x18
cmp eax, dword [edx]
jl 0x458530
mov eax, dword [esp + 0x18]
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 + 0x20c], ecx
call fcn.0043a420
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20c], edx
mov eax, dword [ecx + 0x3c]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x458627
mov edi, edi
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x4c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x48]
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 + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.004328a0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x4c], edx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], ecx
mov byte [esi + 4], 0x72
mov dword [esi + 0x44], 0
test eax, eax
jne 0x4585ed
mov eax, dword [esp + 0x30]
jmp 0x4585fb
mov edx, dword [esp + 0x30]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x44], 0
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x40], 0
jne 0x458996
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x458590
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax + 0xc]
call fcn.00404210
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
call fcn.00404210
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.00404210
mov eax, dword [esp + 0x18]
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 0x4586c2
movzx ecx, word [eax + 0x28]
cmp ecx, 1
jne 0x4586b7
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1b8]
test ecx, ecx
jne 0x45869a
mov ecx, edx
mov edx, dword [ecx + 0x22c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x22c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x4586d4
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x4586d4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x28]
movzx esi, byte [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x458702
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x12], dl
jmp 0x458720
push 0
push 0
push edi
xor eax, eax
call fcn.0043f820
add esp, 0xc
mov dword [ebx + 0x28], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x45897b
cmp esi, 1
jle 0x458749
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
mov ecx, edi
call fcn.0043f720
add esp, 8
mov dword [ebx + 0x28], eax
cmp byte [edi + 0x40], 0
mov dword [esp + 0x18], eax
jne 0x45897b
test esi, esi
jle 0x4587b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x28], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
lea esp, [esp]
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x34]
mov esi, dword [esp + 0x14]
call fcn.0043f5f0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov esi, eax
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov esi, 0x48
push esi
push 0
push eax
call fcn.0049d4a0
add dword [esp + 0x30], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x458770
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x12]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov byte [edx + eax + 0x28], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
cmp dword [ecx], eax
jle 0x458833
mov dword [esp + 0x28], eax
lea esp, [esp]
mov edx, dword [ecx + 8]
cmp dword [eax + edx + 4], 0
jne 0x45881b
mov ebx, dword [eax + edx + 8]
push esi
call fcn.00404570
add esp, 4
mov esi, eax
call fcn.004068a0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov dword [edx + ecx + 4], esi
mov esi, dword [esp + 0x14]
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 0x4587e0
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.004580e0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x458877
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x30]
push eax
push ecx
push edx
push esi
call fcn.004580e0
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x34]
push eax
push ecx
push edx
push esi
call fcn.00457fd0
add esp, 0x20
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x45888a
mov dword [ebx + 0x38], eax
mov dword [edi + 0x38], 0
jmp 0x4588a3
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4588a3
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.004580e0
add esp, 0x10
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x4588be
push 0
push 0
push eax
push esi
call fcn.00432150
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x4588c6
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x2c]
je 0x45891f
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.00457fd0
push 0
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x34]
push 0
push eax
push esi
call fcn.00432150
mov edx, dword [ebx + 0x34]
push eax
push edx
mov eax, esi
call fcn.00431c70
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x30]
push 0
push eax
push esi
call fcn.004323a0
add esp, 0x34
mov dword [ebx + 0x30], eax
jmp 0x458944
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.00457fd0
mov ecx, dword [esp + 0x38]
push ecx
mov dword [ebx + 0x2c], eax
push eax
mov eax, esi
call fcn.00431c70
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 + 0x48]
test eax, eax
je 0x458961
mov dword [ebx + 0x48], eax
mov dword [edi + 0x48], 0
mov ebx, dword [ebx + 0x3c]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x4586d0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x458996
push esi
push edi
call fcn.004526b0
add esp, 8
mov eax, esi
mov ecx, edi
call fcn.00404210
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret