Function at 0x476af0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xa
call fcn.004be967
add esp, 4
mov ebx, eax
mov ecx, ebp
mov dword [esp + 0x10], ebx
push 0
push 9
push ebx
call fcn.00464f40
test eax, eax
jne 0x476b2c
push ebx
call fcn.004be975
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 0x4ba4]
test eax, eax
je 0x476c5c
mov eax, dword [ebp + 0x4ba0]
test eax, eax
je 0x476c5c
mov edi, dword [ebp + 0x324]
mov eax, dword [ebp + 0x4890]
mov dword [esp + 0x14], edi
cmp eax, dword [edi + 0x14]
jge 0x476c5c
test eax, eax
jl 0x476c5c
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x476c5c
mov al, byte [eax]
shr eax, 2
and eax, 7
cmp eax, 1
jg 0x476be7
mov edx, dword [ebp + 0x4bbc]
mov eax, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x4bb4]
add eax, ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jge 0x476ba1
mov eax, ecx
cmp edx, eax
jge 0x476c5c
mov eax, dword [ebp + 0x4bb8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x4bb0]
sub ecx, eax
cmp esi, ecx
jge 0x476bc0
mov ecx, esi
mov esi, dword [ebp + 0x4ba0]
mov edi, dword [ebp + 0x4ba4]
mov esi, dword [esi + edx*4]
mov edi, dword [edi + edx*4]
add esi, eax
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
jmp 0x476b8a
cmp eax, 2
jne 0x476c5c
mov esi, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x4bbc]
mov edx, dword [ebp + 0x4bb4]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jge 0x476c0a
mov eax, ecx
cmp esi, eax
jge 0x476c5c
mov edx, dword [ebp + 0x4bb8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x4bb0]
sub eax, edx
cmp ecx, eax
jge 0x476c25
mov eax, ecx
mov ecx, eax
xor eax, eax
mov al, byte [edi + 9]
mov edi, dword [ebp + 0x4ba4]
mov bl, al
mov edi, dword [edi + esi*4]
mov bh, bl
mov eax, ebx
add edi, edx
mov edx, ecx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x10]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
inc esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
jmp 0x476bf2
mov al, byte [ebx + 8]
xor ecx, ecx
and eax, 0x40
xor edx, edx
mov dword [ebp + 0x4880], eax
mov cx, word [ebx + 4]
mov dword [ebp + 0x4bb0], ecx
mov dx, word [ebx + 6]
xor eax, eax
mov dword [ebp + 0x4bb4], edx
mov ax, word [ebx]
mov edx, dword [ebp + 0x320]
xor ecx, ecx
mov dword [ebp + 0x4bb8], eax
mov cx, word [ebx + 2]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x4bbc], ecx
mov ecx, dword [ebp + 0x4890]
inc edx
inc ecx
mov dword [ebp + 0x320], edx
xor edx, edx
mov dword [ebp + 0x4890], ecx
mov dx, word [ebx + 4]
cmp edx, eax
jle 0x476d44
mov eax, dword [ebp + 0x4ba0]
xor esi, esi
cmp eax, esi
je 0x476d15
cmp dword [ebp + 0x4ba4], esi
je 0x476d15
mov eax, dword [ebp + 0x4ba8]
push eax
call fcn.004be975
mov ecx, dword [ebp + 0x4bac]
push ecx
call fcn.004be975
mov edx, dword [ebp + 0x4ba0]
push edx
call fcn.004be975
mov eax, dword [ebp + 0x4ba4]
mov dword [ebp + 0x4ba0], esi
push eax
call fcn.004be975
add esp, 0x10
mov dword [ebp + 0x4ba4], esi
mov ecx, dword [ebp + 0x487c]
xor eax, eax
mov ax, word [ebx + 4]
push ecx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x374], eax
call fcn.004be975
mov edx, dword [ebp + 0xc]
push edx
call fcn.004be967
add esp, 8
mov dword [ebp + 0x487c], eax
jmp 0x476d46
xor esi, esi
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [ebx + 6]
cmp eax, ecx
jle 0x476dab
cmp dword [ebp + 0x4ba0], esi
je 0x476da2
cmp dword [ebp + 0x4ba4], esi
je 0x476da2
mov ecx, dword [ebp + 0x4ba8]
push ecx
call fcn.004be975
mov edx, dword [ebp + 0x4bac]
push edx
call fcn.004be975
mov eax, dword [ebp + 0x4ba0]
push eax
call fcn.004be975
mov ecx, dword [ebp + 0x4ba4]
mov dword [ebp + 0x4ba0], esi
push ecx
call fcn.004be975
add esp, 0x10
mov dword [ebp + 0x4ba4], esi
xor edx, edx
mov dx, word [ebx + 6]
mov dword [ebp + 0x10], edx
mov ecx, 3
mov edi, 0x4e4ac0
lea esi, [ebp + 0x486f]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x476ded
cmp dword [ebp + 0x4890], eax
jne 0x476ded
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 4]
mov dword [ebp + 0xc], ecx
mov dx, word [ebx + 6]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x374], ecx
mov dword [ebp + 0x4bb8], eax
mov dword [ebp + 0x4bbc], eax
mov eax, dword [ebp + 0x4878]
mov ebx, dword [ebp + 0x324]
test eax, eax
je 0x476ea9
push 6
call fcn.004be967
add esp, 4
test eax, eax
je 0x476e29
lea edx, [ebp + 0x4872]
mov ecx, eax
mov dword [esp + 0x14], eax
mov esi, dword [edx]
mov dword [ecx], esi
mov dx, word [edx + 4]
mov word [ecx + 4], dx
jmp 0x476e31
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x476ea9
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x476e95
add eax, dword [ebx + 0x20]
lea edx, [eax*4 + 4]
push edx
call fcn.004be967
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x10]
mov edi, eax
mov dword [esp + 0x1c], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10]
push eax
call fcn.004be975
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
add eax, edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [ebx + 0x14]
inc eax
mov dword [ebx + 0x14], eax
mov esi, dword [esp + 0x10]
mov cl, byte [esi + 8]
test cl, 0x80
je 0x476efc
and ecx, 7
mov eax, 2
shl eax, cl
push 0
mov dx, ax
mov dword [ebp + 0x1c], eax
mov cl, byte [esi + 8]
imul dx, dx, 3
and ecx, 7
and edx, 0xffff
inc ecx
lea eax, [ebp + 0x20]
mov dword [ebp + 0x14], ecx
push edx
push eax
mov ecx, ebp
call fcn.00464f40
test eax, eax
jne 0x476f36
push 7
mov ecx, ebp
call fcn.004642b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov cl, byte [ebx + 8]
mov edx, 2
and ecx, 7
lea esi, [ebp + 0x48a0]
shl edx, cl
lea edi, [ebp + 0x20]
mov dword [ebp + 0x1c], edx
mov al, byte [ebx + 8]
and eax, 7
inc eax
mov dword [ebp + 0x14], eax
mov eax, edx
lea ecx, [eax + eax*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x476fa6
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x476f96
mov edx, dword [ebx + 0x3c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x2c]
mov ebp, eax
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x2c]
push eax
call fcn.004be975
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x34]
mov esi, dword [esp + 0x18]
add esp, 8
add eax, ecx
mov dword [ebx + 0x2c], ebp
mov dword [ebx + 0x34], eax
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ebx + 0x30]
inc eax
mov dword [ebx + 0x30], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret