Function at 0x477490
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 + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
push edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
jne 0x4774ed
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x20]
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 + 0x1c], edx
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
je 0x4774f6
cmp dword [ebp + 0x14], 0
je 0x477501
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
je 0x477501
cmp dword [ecx], 1
jg 0x4774ed
mov eax, dword [edx + 0x3c]
mov edi, dword [edx + 0x20]
test eax, eax
je 0x477511
cmp dword [esi + 0x3c], 0
jne 0x4774ed
cmp dword [edx + 0x40], 0
jne 0x4774ed
movzx edx, word [esi + 6]
mov dword [esp + 0x2c], edx
test dl, 0x40
je 0x477528
test eax, eax
jne 0x4774ed
cmp dword [edi], 0
je 0x4774ed
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 6]
mov dword [esp + 0x30], edx
test dl, 1
jne 0x4774ed
test eax, eax
je 0x47754d
cmp dword [ecx], 1
jg 0x4774ed
cmp dword [ebp + 0x10], 0
jne 0x4774ed
mov edx, dword [esp + 0x2c]
and edx, 1
mov dword [esp + 0x24], edx
je 0x477560
cmp dword [ebp + 0x14], 0
jne 0x4774ed
cmp dword [esi + 0x30], 0
mov edi, dword [esp + 0x10]
je 0x477574
cmp dword [edi + 0x30], 0
jne 0x4774ed
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x477585
cmp dword [edi + 0x30], 0
jne 0x4774ed
test eax, eax
je 0x4775a3
cmp dword [esi + 0x24], 0
jne 0x4774ed
test eax, eax
je 0x4775a3
cmp word [esp + 0x24], 0
jne 0x4774ed
test dword [esp + 0x30], 0x1800
jne 0x4774ed
test dword [esp + 0x2c], 0x800
je 0x4775c5
cmp dword [edi + 0x34], 0
jne 0x4774ed
test byte [ebx + ecx + 0x2c], 0x20
lea eax, [ebx + ecx + 0x2c]
mov dword [esp + 0x38], eax
jne 0x4774ed
cmp dword [edi + 0x34], 0
je 0x47766b
cmp dword [edi + 0x30], 0
jne 0x4774ed
test edx, edx
jne 0x4774ed
cmp word [esp + 0x24], dx
jne 0x4774ed
cmp dword [ecx], 1
jne 0x4774ed
mov eax, edi
test byte [eax + 6], 5
jne 0x4774ed
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x477625
cmp byte [eax + 4], 0x74
jne 0x4774ed
mov edx, dword [eax + 0x20]
cmp dword [edx], 1
jl 0x4774ed
mov edx, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x4774ed
mov eax, ecx
test eax, eax
jne 0x47760a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x47766b
cmp dword [eax], ecx
jle 0x47766b
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x4774ed
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x477656
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 + 0x40], edi
mov dword [eax + 0x1ec], ecx
call fcn.00458bc0
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x47774a
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 + 0x2c], 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.004505f0
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 0x47770d
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x34], edx
jmp 0x477721
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x47771b
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x40], 0
jne 0x477ad9
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4776b4
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov eax, dword [ebx + eax + 0xc]
call fcn.0041ec40
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
call fcn.0041ec40
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [esp + 0x14]
call fcn.0041ec40
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
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 0x4777e5
movzx ecx, word [eax + 0x28]
cmp ecx, 1
jne 0x4777da
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x4777bd
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x48], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x2c], ebx
jmp 0x4777f4
dec ecx
mov word [eax + 0x28], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [esp + 0x2c], ebx
jmp 0x4777f4
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
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 + 0xf], 0
mov dword [esp + 0x18], eax
test eax, eax
je 0x477821
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0xf], dl
jmp 0x477840
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.0045e380
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [esp + 0x18], eax
test eax, eax
je 0x477acb
cmp esi, 1
jle 0x477868
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.0045e270
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x40], 0
mov dword [esp + 0x18], eax
jne 0x477acb
test esi, esi
jle 0x4778d0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x24], eax
lea eax, [ecx + edx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
jmp 0x477890
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x14]
call fcn.0045e0f0
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.00499a80
add dword [esp + 0x2c], esi
add dword [esp + 0x30], esi
add esp, 0xc
dec dword [esp + 0x30]
jne 0x477890
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0xf]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
cmp dword [ecx], eax
jle 0x477953
mov dword [esp + 0x24], eax
lea esp, [esp]
mov edx, dword [ecx + 4]
cmp dword [eax + edx + 4], 0
jne 0x47793b
mov ebx, dword [eax + edx + 8]
push esi
call fcn.0041f0b0
add esp, 4
mov esi, eax
call fcn.004219c0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov dword [edx + ecx + 4], esi
mov esi, dword [esp + 0x14]
mov ecx, eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
inc edx
add eax, 0x18
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
cmp edx, dword [ecx]
jl 0x477900
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx]
push eax
push ecx
push edx
push esi
call fcn.004771d0
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x477997
mov eax, dword [edi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x28]
push eax
push ecx
push edx
push esi
call fcn.004771d0
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx + 0x2c]
push eax
push ecx
push edx
push esi
call fcn.004770c0
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 0x4779da
mov dword [esp + 0x18], ecx
cmp dword [eax], ecx
jle 0x4779ce
lea esp, [esp]
mov eax, dword [eax + 4]
xor edx, edx
mov word [eax + ecx + 0x14], dx
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 0x4779b0
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x4779f3
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x4779f3
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.004771d0
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x477a0e
push 0
push 0
push eax
push esi
call fcn.0044fce0
add esp, 0x10
mov dword [esp + 0x24], eax
jmp 0x477a16
mov dword [esp + 0x24], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x477a6f
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.004770c0
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.0044fce0
mov edx, dword [ebx + 0x2c]
push eax
push edx
mov eax, esi
call fcn.0044f810
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.00450060
add esp, 0x34
mov dword [ebx + 0x28], eax
jmp 0x477a94
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.004770c0
mov ecx, dword [esp + 0x34]
push ecx
mov dword [ebx + 0x24], eax
push eax
mov eax, esi
call fcn.0044f810
add esp, 0x18
mov dword [ebx + 0x24], eax
mov dx, word [edi + 6]
and dx, 1
or word [ebx + 6], dx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x477ab1
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov eax, dword [edi + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x4777f0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
push ecx
push edi
call fcn.00470e40
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret