Function at 0x479360
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x479a3f
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x479a3f
cmp dword [edi + 0xc], 0
je 0x479a38
cmp dword [edi], 0
jne 0x479393
cmp dword [edi + 4], 0
jne 0x479a38
mov eax, dword [esi + 4]
cmp eax, 0x29a
je 0x479a38
cmp dword [edi + 0x10], 0
jne 0x4793b7
mov dword [edi + 0x18], str.buffer_error
pop edi
mov eax, 0xfffffffb
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x14]
push ebx
push ebp
mov dword [esi], edi
mov dword [esp + 0x10], ecx
mov dword [esi + 0x28], edx
mov ebx, 1
cmp eax, 0x2a
jne 0x479661
mov edx, 2
cmp dword [esi + 0x18], edx
jne 0x4795d9
mov dword [edi + 0x30], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [eax + ecx], 0x1f
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0x8b
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 8
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
mov ebp, dword [esi + 0x14]
test eax, eax
jne 0x4794a8
mov eax, dword [esi + 8]
mov byte [eax + ebp], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x14]
cmp eax, 9
jne 0x479471
mov eax, edx
jmp 0x479486
cmp dword [esi + 0x88], edx
jge 0x479481
cmp eax, edx
jl 0x479481
xor eax, eax
jmp 0x479486
mov eax, 4
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], 0xb
add dword [esi + 0x14], ebx
mov dword [esi + 4], 0x71
jmp 0x479661
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x2c]
neg edx
sbb dl, dl
and dl, 0x10
neg ecx
sbb cl, cl
and cl, 2
add dl, cl
mov ecx, dword [eax + 0x1c]
neg ecx
sbb cl, cl
and cl, 8
add dl, cl
mov ecx, dword [eax + 0x10]
neg ecx
sbb cl, cl
and cl, 4
add dl, cl
cmp dword [eax], 0
mov ecx, dword [esi + 8]
setne al
add dl, al
mov byte [ecx + ebp], dl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
movzx edx, byte [edx + 4]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [ecx + 5]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov edx, dword [esi + 0x1c]
movzx edx, byte [edx + 6]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx ecx, byte [ecx + 7]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x14]
cmp eax, 9
jne 0x479548
mov eax, 2
jmp 0x47955f
cmp dword [esi + 0x88], 2
jge 0x47955a
cmp eax, 2
jl 0x47955a
xor eax, eax
jmp 0x47955f
mov eax, 4
mov edx, dword [esi + 8]
mov byte [ecx + edx], al
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0xc]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
mov edx, dword [esi + 0x14]
je 0x4795a7
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
add dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov cl, byte [ecx + 0x15]
mov byte [eax + edx], cl
add dword [esi + 0x14], ebx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4795c6
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4795be
xor eax, eax
jmp 0x4795c3
call fcn.0047c850
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
jmp 0x479661
mov ecx, dword [esi + 0x30]
sub ecx, 8
shl ecx, 0xc
add ecx, 0x800
cmp dword [esi + 0x88], edx
jge 0x47960f
mov ebp, dword [esi + 0x84]
cmp ebp, edx
jl 0x47960f
cmp ebp, 6
jge 0x479603
mov eax, ebx
jmp 0x479611
xor eax, eax
cmp ebp, 6
setne al
add eax, edx
jmp 0x479611
xor eax, eax
shl eax, 6
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x47961f
or ecx, 0x20
mov eax, 0x8421085
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, ebx
mov eax, ecx
shl ecx, 5
sub ecx, eax
mov eax, esi
mov dword [esi + 4], 0x71
call fcn.004792e0
cmp dword [esi + 0x6c], 0
je 0x47965e
movzx ecx, word [edi + 0x32]
call fcn.004792e0
movzx ecx, word [edi + 0x30]
call fcn.004792e0
mov dword [edi + 0x30], ebx
cmp dword [esi + 4], 0x45
jne 0x479731
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x47972a
movzx ecx, word [eax + 0x14]
mov ebp, dword [esi + 0x14]
cmp dword [esi + 0x20], ecx
jae 0x4796ec
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x4796c4
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x4796b5
cmp eax, ebp
jbe 0x4796b5
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov ebp, dword [edi + 0x30]
jne 0x4796a9
xor eax, eax
jmp 0x4796b2
mov edx, eax
mov eax, ebp
call fcn.0047c850
mov dword [edi + 0x30], eax
call fcn.00479310
mov eax, dword [esi + 0x14]
mov ebp, eax
cmp eax, dword [esi + 0xc]
je 0x4796ec
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [esi + 0x20]
mov dl, byte [edx + ecx]
mov edi, dword [esi + 8]
mov byte [eax + edi], dl
add dword [esi + 0x14], ebx
add dword [esi + 0x20], ebx
mov eax, dword [esi + 0x1c]
movzx ecx, word [eax + 0x14]
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x20], ecx
jb 0x479684
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x479718
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x479718
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x47970c
xor eax, eax
jmp 0x479715
mov edx, eax
mov eax, ebx
call fcn.0047c850
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x479731
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
cmp dword [esi + 4], 0x49
jne 0x4797ef
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x1c], 0
je 0x4797e8
mov ebp, dword [esi + 0x14]
jmp 0x479750
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x479790
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x479781
cmp eax, ebp
jbe 0x479781
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x479775
xor eax, eax
jmp 0x47977e
mov edx, eax
mov eax, ebx
call fcn.0047c850
mov dword [edi + 0x30], eax
call fcn.00479310
mov eax, dword [esi + 0x14]
mov ebp, eax
cmp eax, dword [esi + 0xc]
je 0x4797b0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x1c]
movzx ebx, byte [edx + ecx]
inc ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
inc dword [esi + 0x14]
test ebx, ebx
jne 0x479750
jmp 0x4797b5
mov ebx, 1
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x4797e1
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x4797e1
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov ebp, dword [edi + 0x30]
jne 0x4797d5
xor eax, eax
jmp 0x4797de
mov edx, eax
mov eax, ebp
call fcn.0047c850
mov dword [edi + 0x30], eax
test ebx, ebx
jne 0x4797ef
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x5b
cmp dword [esi + 4], 0x5b
jne 0x4798ac
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x4798a5
mov ebp, dword [esi + 0x14]
lea esp, [esp]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x479850
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x479841
cmp eax, ebp
jbe 0x479841
mov ecx, dword [esi + 8]
mov ebx, dword [edi + 0x30]
sub eax, ebp
add ecx, ebp
jne 0x479835
xor eax, eax
jmp 0x47983e
mov edx, eax
mov eax, ebx
call fcn.0047c850
mov dword [edi + 0x30], eax
call fcn.00479310
mov eax, dword [esi + 0x14]
mov ebp, eax
cmp eax, dword [esi + 0xc]
je 0x479870
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + 0x24]
movzx ebx, byte [edx + ecx]
inc ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esi + 8]
mov byte [eax + ecx], bl
inc dword [esi + 0x14]
test ebx, ebx
jne 0x479810
jmp 0x479875
mov ebx, 1
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x4798a1
mov eax, dword [esi + 0x14]
cmp eax, ebp
jbe 0x4798a1
mov ecx, dword [esi + 8]
sub eax, ebp
add ecx, ebp
mov ebp, dword [edi + 0x30]
jne 0x479895
xor eax, eax
jmp 0x47989e
mov edx, eax
mov eax, ebp
call fcn.0047c850
mov dword [edi + 0x30], eax
test ebx, ebx
jne 0x4798ac
mov dword [esi + 4], 0x67
cmp dword [esi + 4], 0x67
jne 0x479904
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4798fd
mov ecx, dword [esi + 0x14]
add ecx, 2
cmp ecx, dword [esi + 0xc]
jbe 0x4798cb
call fcn.00479310
mov eax, dword [esi + 0x14]
lea edx, [eax + 2]
cmp edx, dword [esi + 0xc]
ja 0x479904
mov dl, byte [edi + 0x30]
mov ecx, dword [esi + 8]
mov byte [eax + ecx], dl
mov edx, dword [esi + 8]
mov ecx, 1
add dword [esi + 0x14], ecx
mov eax, dword [esi + 0x14]
mov bl, byte [edi + 0x31]
mov byte [eax + edx], bl
add dword [esi + 0x14], ecx
mov dword [edi + 0x30], 0
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], 0
je 0x479924
call fcn.00479310
cmp dword [edi + 0x10], 0
jne 0x47996a
mov dword [esi + 0x28], 0xffffffff
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp dword [edi + 4], 0
mov ebx, dword [esp + 0x1c]
jne 0x47996e
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 4
setle cl
lea edx, [eax + eax]
xor eax, eax
dec ecx
and ecx, 9
sub edx, ecx
cmp ebx, 4
setle al
lea ecx, [ebx + ebx]
dec eax
and eax, 9
sub ecx, eax
cmp ecx, edx
jg 0x47996e
pop ebp
pop ebx
mov dword [edi + 0x18], str.buffer_error
pop edi
mov eax, 0xfffffffb
pop esi
pop ecx
ret
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
cmp eax, 0x29a
jne 0x479990
cmp dword [edi + 4], 0
je 0x479996
pop ebp
pop ebx
mov dword [edi + 0x18], str.buffer_error
pop edi
mov eax, 0xfffffffb
pop esi
pop ecx
ret
cmp dword [edi + 4], 0
jne 0x4799a7
cmp dword [esi + 0x74], 0
jne 0x4799a7
cmp eax, 0x29a
je 0x47991c
mov eax, dword [esi + 0x88]
push ebx
cmp eax, 2
jne 0x4799bd
call fcn.0047ac40
add esp, 4
jmp 0x4799e2
cmp eax, 3
jne 0x4799cc
call fcn.0047a950
add esp, 4
jmp 0x4799e2
mov eax, dword [esi + 0x84]
lea edx, [eax + eax*2]
mov eax, dword [edx*4 + 0x4cc730]
push esi
call eax
add esp, 8
cmp eax, 2
je 0x4799ec
cmp eax, 3
jne 0x4799f3
mov dword [esi + 4], 0x29a
test eax, eax
je 0x479a1f
cmp eax, 2
je 0x479a1f
cmp eax, 1
jne 0x47991c
cmp ebx, 5
je 0x479a1a
push 0
push 0
xor ecx, ecx
mov eax, esi
call fcn.0047bd60
add esp, 8
call fcn.00479310
cmp dword [edi + 0x10], 0
jne 0x47991c
pop ebp
pop ebx
pop edi
mov dword [esi + 0x28], 0xffffffff
xor eax, eax
pop esi
pop ecx
ret
mov dword [edi + 0x18], str.stream_error
pop edi
mov eax, 0xfffffffe
pop esi
pop ecx
ret