Function at 0x49c710
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 0x49c740
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 0x49c7ae
cmp dword [ebp + 0x10], 0
jne 0x49c737
cmp dword [ecx], 1
jg 0x49c737
mov eax, dword [esi + 0x24]
test eax, eax
je 0x49c78d
test dword [eax + 4], 0x200000
jne 0x49c737
mov edx, dword [esi]
call fcn.00478110
test eax, 0x200000
jne 0x49c737
mov edx, dword [esi + 0x30]
call fcn.00478110
test eax, 0x200000
jne 0x49c737
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0x3c], 0
mov eax, dword [edi + 0x20]
je 0x49c7c1
cmp dword [esi + 0x3c], 0
jne 0x49c737
cmp dword [edi + 0x40], 0
jne 0x49c737
movzx edx, word [esi + 6]
mov dword [esp + 0x30], edx
test dl, dl
jns 0x49c7e1
cmp dword [edi + 0x3c], 0
jne 0x49c737
cmp dword [eax], 0
je 0x49c737
movzx eax, word [edi + 6]
test al, 1
jne 0x49c737
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x49c810
cmp dword [ecx], 1
jg 0x49c737
cmp dword [ebp + 0x10], 0
jne 0x49c737
mov edx, dword [esp + 0x30]
and edx, 1
mov dword [esp + 0x28], edx
je 0x49c827
cmp dword [ebp + 0x14], 0
jne 0x49c737
cmp dword [esi + 0x30], 0
je 0x49c837
cmp dword [edi + 0x30], 0
jne 0x49c737
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49c848
cmp dword [edi + 0x30], 0
jne 0x49c737
test eax, eax
je 0x49c866
cmp dword [esi + 0x24], 0
jne 0x49c737
test eax, eax
je 0x49c866
cmp word [esp + 0x28], 0
jne 0x49c737
movzx eax, word [edi + 6]
test eax, 0x3000
jne 0x49c737
test dword [esp + 0x30], 0x2000
je 0x49c889
cmp dword [edi + 0x34], 0
jne 0x49c737
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x38], eax
jne 0x49c737
cmp dword [edi + 0x34], 0
je 0x49c925
cmp dword [edi + 0x30], 0
jne 0x49c737
test edx, edx
jne 0x49c737
cmp word [esp + 0x28], dx
jne 0x49c737
cmp dword [ecx], 1
jne 0x49c737
mov eax, edi
mov dl, 9
test byte [eax + 6], dl
jne 0x49c737
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x49c8ea
cmp byte [eax + 4], 0x74
jne 0x49c737
mov eax, dword [eax + 0x20]
cmp dword [eax], 1
jl 0x49c737
mov eax, ecx
test eax, eax
jne 0x49c8d0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x49c925
cmp dword [eax], ecx
jle 0x49c925
mov eax, dword [eax + 4]
add eax, 0x14
lea ecx, [ecx]
cmp word [eax], 0
je 0x49c737
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x49c910
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.0047fd60
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 0x49ca06
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.00477c30
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 0x49c9c9
mov edx, dword [esp + 0x30]
mov dword [esi + 0x34], edx
jmp 0x49c9dd
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x49c9d7
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 0x49cd9c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x49c970
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.00445870
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
call fcn.00445870
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.00445870
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 0x49caa1
movzx ecx, word [eax + 0x24]
cmp ecx, 1
jne 0x49ca96
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x49ca79
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 0x49cab4
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x30], ebx
jmp 0x49cab4
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 0x49cae1
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
jmp 0x49cb00
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.00485410
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x49cd8c
cmp esi, 1
jle 0x49cb28
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.00485300
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [esp + 0x18], eax
jne 0x49cd8c
test esi, esi
jle 0x49cb90
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 0x49cb50
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x14]
call fcn.00485160
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.005de050
add dword [esp + 0x30], esi
add dword [esp + 0x34], esi
add esp, 0xc
dec dword [esp + 0x34]
jne 0x49cb50
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 0x49cc0f
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 0x49cbfd
mov ebx, dword [eax + edx + 8]
push esi
call fcn.00445ce0
add esp, 4
mov esi, eax
call fcn.00448520
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 0x49cbc0
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
push ecx
push edx
push eax
push esi
call fcn.0049c450
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x49cc53
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push esi
call fcn.0049c450
mov ecx, dword [edi]
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push esi
call fcn.0049c340
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 0x49cc9a
mov dword [esp + 0x18], ecx
cmp dword [eax], ecx
jle 0x49cc8e
jmp 0x49cc70
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 0x49cc70
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x49ccb3
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x49ccb3
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.0049c450
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x49ccce
push 0
push 0
push eax
push esi
call fcn.00477340
add esp, 0x10
mov dword [esp + 0x28], eax
jmp 0x49ccd6
mov dword [esp + 0x28], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x49cd31
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.0049c340
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.00477340
mov edx, dword [ebx + 0x2c]
push edx
mov ecx, esi
call fcn.00476e80
add esp, 0x24
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.004776c0
add esp, 0xc
mov dword [ebx + 0x28], eax
jmp 0x49cd55
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push esi
call fcn.0049c340
mov dword [ebx + 0x24], eax
push eax
mov eax, dword [esp + 0x3c]
mov ecx, esi
call fcn.00476e80
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 0x49cd72
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 0x49cab0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push 1
push eax
push edi
call fcn.00496ee0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret