Function at 0x480240
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 + 0x1e8]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x480270
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x14], 0
mov edx, dword [ebx + ecx + 0x38]
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 + 0x24], eax
mov dword [esp + 0x1c], edi
je 0x4802de
cmp dword [ebp + 0x10], 0
jne 0x480267
cmp dword [ecx], 1
jg 0x480267
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4802bd
test dword [eax + 4], 0x200000
jne 0x480267
mov edx, dword [esi]
call fcn.004599d0
test eax, 0x200000
jne 0x480267
mov edx, dword [esi + 0x30]
call fcn.004599d0
test eax, 0x200000
jne 0x480267
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0x3c], 0
mov eax, dword [edi + 0x20]
je 0x4802f1
cmp dword [esi + 0x3c], 0
jne 0x480267
cmp dword [edi + 0x40], 0
jne 0x480267
movzx edx, word [esi + 6]
mov dword [esp + 0x30], edx
test dl, dl
jns 0x480311
cmp dword [edi + 0x3c], 0
jne 0x480267
cmp dword [eax], 0
je 0x480267
movzx eax, word [edi + 6]
test al, 1
jne 0x480267
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x480340
cmp dword [ecx], 1
jg 0x480267
cmp dword [ebp + 0x10], 0
jne 0x480267
mov edx, dword [esp + 0x30]
and edx, 1
mov dword [esp + 0x28], edx
je 0x480357
cmp dword [ebp + 0x14], 0
jne 0x480267
cmp dword [esi + 0x30], 0
je 0x480367
cmp dword [edi + 0x30], 0
jne 0x480267
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x480378
cmp dword [edi + 0x30], 0
jne 0x480267
test eax, eax
je 0x480396
cmp dword [esi + 0x24], 0
jne 0x480267
test eax, eax
je 0x480396
cmp word [esp + 0x28], 0
jne 0x480267
movzx eax, word [edi + 6]
test eax, 0x3000
jne 0x480267
test dword [esp + 0x30], 0x2000
je 0x4803b9
cmp dword [edi + 0x34], 0
jne 0x480267
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x38], eax
jne 0x480267
cmp dword [edi + 0x34], 0
je 0x480455
cmp dword [edi + 0x30], 0
jne 0x480267
test edx, edx
jne 0x480267
cmp word [esp + 0x28], dx
jne 0x480267
cmp dword [ecx], 1
jne 0x480267
mov eax, edi
mov dl, 9
test byte [eax + 6], dl
jne 0x480267
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x48041a
cmp byte [eax + 4], 0x74
jne 0x480267
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jl 0x480267
mov eax, ecx
test eax, eax
jne 0x480400
mov eax, dword [esi + 0x30]
test eax, eax
je 0x480455
cmp dword [eax], ecx
jle 0x480455
mov eax, dword [eax + 4]
add eax, 0x14
lea ecx, [ecx]
cmp word [eax], 0
je 0x480267
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x480440
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 + 0x38], edi
mov dword [eax + 0x1e8], ecx
call fcn.00461900
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x1e8], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x480536
mov edi, edi
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x14]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x40], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.004594f0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x4804f9
mov edx, dword [esp + 0x30]
mov dword [esi + 0x34], edx
jmp 0x48050d
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x480507
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x41], 0
jne 0x4808cc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4804a0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
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.004267e0
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
call fcn.004267e0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.004267e0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
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 0x4805d1
movzx ecx, word [eax + 0x24]
cmp ecx, 1
jne 0x4805c6
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x4805a9
mov ecx, edx
mov edx, dword [ecx + 0x208]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x208], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x4805e4
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x4805e4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x20]
mov esi, dword [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x20]
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x480611
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x480630
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.00467150
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x4808bc
cmp esi, 1
jle 0x480658
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.00467040
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [esp + 0x18], eax
jne 0x4808bc
test esi, esi
jle 0x4806c0
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
jmp 0x480680
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x14]
call fcn.00466e90
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.004d6340
add dword [esp + 0x30], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x480680
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x13]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
cmp dword [ecx], eax
jle 0x48073f
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x24]
cmp dword [eax + edx + 4], 0
jne 0x48072d
mov ebx, dword [eax + edx + 8]
push esi
call fcn.00426c50
add esp, 4
mov esi, eax
call fcn.00429490
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov dword [edx + eax + 4], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], 0x18
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx]
jl 0x4806f0
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
push ecx
push edx
push eax
push esi
call fcn.0047ff80
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x480783
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push esi
call fcn.0047ff80
mov ecx, dword [edi]
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push esi
call fcn.0047fe70
add esp, 0x20
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp eax, ecx
je 0x4807ca
mov dword [esp + 0x18], ecx
cmp dword [eax], ecx
jle 0x4807be
jmp 0x4807a0
mov edx, dword [eax + 4]
xor eax, eax
mov word [ecx + edx + 0x14], ax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc edx
add ecx, 0x18
mov dword [esp + 0x18], edx
cmp edx, dword [eax]
jl 0x4807a0
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x4807e3
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x4807e3
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.0047ff80
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4807fe
push 0
push 0
push eax
push esi
call fcn.00458c00
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x480806
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x480861
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.0047fe70
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.00458c00
mov edx, dword [ebx + 0x2c]
push edx
mov ecx, esi
call fcn.00458710
add esp, 0x24
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.00458f80
add esp, 0xc
mov dword [ebx + 0x28], eax
jmp 0x480885
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.0047fe70
mov dword [ebx + 0x24], eax
push eax
mov eax, dword [esp + 0x3c]
mov ecx, esi
call fcn.00458710
add esp, 0x14
mov dword [ebx + 0x24], eax
mov cx, word [edi + 6]
and cx, 1
or word [ebx + 6], cx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4808a2
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], edx
test ebx, ebx
jne 0x4805e0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push 1
push eax
push edi
call fcn.00479bf0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret