Function at 0x48fd50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
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 + 0x30], ecx
mov dword [esp + 0x10], eax
je 0x48fd83
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 + 0x14], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edi
je 0x48fdee
cmp dword [ebp + 0x10], 0
jne 0x48fd7a
cmp dword [ecx], 1
jg 0x48fd7a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x48fdcd
test dword [eax + 4], 0x200000
jne 0x48fd7a
mov edx, dword [esi]
call fcn.0046acb0
test eax, 0x200000
jne 0x48fd7a
mov edx, dword [esi + 0x30]
call fcn.0046acb0
test eax, 0x200000
jne 0x48fd7a
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x3c], 0
mov eax, dword [edi + 0x20]
je 0x48fe01
cmp dword [esi + 0x3c], 0
jne 0x48fd7a
cmp dword [edi + 0x40], 0
jne 0x48fd7a
movzx edx, word [esi + 6]
mov dword [esp + 0x24], edx
test dl, dl
jns 0x48fe21
cmp dword [edi + 0x3c], 0
jne 0x48fd7a
cmp dword [eax], 0
je 0x48fd7a
movzx eax, word [edi + 6]
test al, 1
jne 0x48fd7a
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x48fe50
cmp dword [ecx], 1
jg 0x48fd7a
cmp dword [ebp + 0x10], 0
jne 0x48fd7a
mov edx, dword [esp + 0x24]
and edx, 1
mov dword [esp + 0x20], edx
je 0x48fe67
cmp dword [ebp + 0x14], 0
jne 0x48fd7a
cmp dword [esi + 0x30], 0
je 0x48fe77
cmp dword [edi + 0x30], 0
jne 0x48fd7a
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x48fe88
cmp dword [edi + 0x30], 0
jne 0x48fd7a
test eax, eax
je 0x48fea6
cmp dword [esi + 0x24], 0
jne 0x48fd7a
test eax, eax
je 0x48fea6
cmp word [esp + 0x20], 0
jne 0x48fd7a
movzx eax, word [edi + 6]
test eax, 0x3000
jne 0x48fd7a
test dword [esp + 0x24], 0x2000
je 0x48fec9
cmp dword [edi + 0x34], 0
jne 0x48fd7a
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x34], eax
jne 0x48fd7a
cmp dword [edi + 0x34], 0
je 0x48ff65
cmp dword [edi + 0x30], 0
jne 0x48fd7a
test edx, edx
jne 0x48fd7a
cmp word [esp + 0x20], dx
jne 0x48fd7a
cmp dword [ecx], 1
jne 0x48fd7a
mov eax, edi
mov dl, 9
test byte [eax + 6], dl
jne 0x48fd7a
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x48ff2a
cmp byte [eax + 4], 0x74
jne 0x48fd7a
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jl 0x48fd7a
mov eax, ecx
test eax, eax
jne 0x48ff10
mov eax, dword [esi + 0x30]
test eax, eax
je 0x48ff65
cmp dword [eax], ecx
jle 0x48ff65
mov eax, dword [eax + 4]
add eax, 0x14
lea ecx, [ecx]
cmp word [eax], 0
je 0x48fd7a
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x48ff50
mov eax, dword [esp + 0x14]
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 + 0x30], edi
mov dword [eax + 0x1e8], ecx
call fcn.00472b40
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1e8], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x490046
mov edi, edi
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
mov dword [esp + 0x24], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x3c], 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.0046a850
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x490009
mov edx, dword [esp + 0x24]
mov dword [esi + 0x34], edx
jmp 0x49001d
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x490017
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x41], 0
jne 0x4903ab
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x48ffb0
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov eax, dword [ebx + eax + 0xc]
call fcn.0043b7d0
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
call fcn.0043b7d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.0043b7d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
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 0x4900d6
movzx ecx, word [eax + 0x24]
cmp cx, 1
jne 0x4900cb
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x4900ba
mov ecx, edx
mov edx, dword [ecx + 0x208]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x208], eax
jmp 0x4900d0
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, esi
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 0x20]
mov eax, dword [ebx + 0x20]
mov esi, dword [edi]
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x4900fd
mov ecx, dword [esp + 0x34]
mov dl, byte [ecx]
mov byte [esp + 0xf], dl
jmp 0x49011f
mov eax, dword [esp + 0x10]
push 0
push eax
xor ecx, ecx
xor eax, eax
call fcn.00478020
add esp, 8
mov dword [ebx + 0x20], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x490397
cmp esi, 1
jle 0x490150
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00477f10
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [ebx + 0x20], eax
cmp byte [ecx + 0x41], 0
mov dword [esp + 0x14], eax
jne 0x490397
test esi, esi
jle 0x4901b1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add edi, 8
lea ecx, [edx + eax + 8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
nop
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 0x38]
mov esi, dword [esp + 0x10]
call fcn.00477dc0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.0050e6a0
add dword [esp + 0x2c], esi
add dword [esp + 0x30], esi
add esp, 0xc
sub dword [esp + 0x2c], 1
jne 0x490170
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0xf]
mov byte [eax + ecx + 0x2c], dl
mov edi, dword [ebx]
xor eax, eax
cmp dword [edi], eax
mov dword [esp + 0x14], eax
jle 0x490215
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
add eax, ecx
cmp dword [eax + 4], 0
jne 0x490203
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0043bc00
add esp, 8
mov esi, eax
call fcn.0043e0e0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x20]
mov dword [ecx + edx + 4], esi
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 0x18
inc eax
cmp eax, dword [edi]
mov dword [esp + 0x14], eax
jl 0x4901d1
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebx]
push eax
push ecx
push edx
call fcn.0048fb40
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x49026a
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x28]
push eax
push ecx
push edx
call fcn.0048fb40
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + 0x2c]
add esp, 0xc
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0048fa30
add esp, 0x10
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
cmp eax, ecx
je 0x4902a6
cmp dword [eax], ecx
mov dword [esp + 0x14], ecx
jle 0x49029a
jmp 0x490280
mov edx, dword [eax + 4]
xor esi, esi
mov word [ecx + edx + 0x14], si
mov edx, dword [esp + 0x14]
inc edx
add ecx, 0x18
cmp edx, dword [eax]
mov dword [esp + 0x14], edx
jl 0x490280
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x4902c2
mov esi, dword [ebx + 0x30]
cmp esi, ecx
je 0x4902c2
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.0048fb40
add esp, 0xc
mov eax, dword [edi + 0x24]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4902e1
push 0
push 0
push eax
push esi
call fcn.00469fe0
add esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x4902e9
mov dword [esp + 0x24], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x490344
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.0048fa30
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.00469fe0
mov edx, dword [ebx + 0x2c]
push edx
mov ecx, esi
call fcn.00469b40
add esp, 0x24
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.0046a390
add esp, 0xc
mov dword [ebx + 0x28], eax
jmp 0x490368
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.0048fa30
mov dword [ebx + 0x24], eax
push eax
mov eax, dword [esp + 0x38]
mov ecx, esi
call fcn.00469b40
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 0x490385
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov edx, dword [edi + 0x34]
mov dword [esp + 0x18], edx
test ebx, ebx
jne 0x4900d8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push ecx
call fcn.0048a310
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret