Function at 0x774139a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
mov edi, dword [ebp + 0x2c]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov eax, dword [edi + 4]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, edx
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x774139e6
mov ecx, dword [ecx + 0x10]
mov edi, dword [ebp - 0x18]
cmp dword [ecx], edi
mov edi, dword [ebp + 0x2c]
je 0x77413b23
inc eax
add ecx, 4
cmp eax, esi
jb 0x774139d0
mov dword [ebp - 0x14], edx
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
movsx eax, word [ebp + 0x28]
push eax
push edi
call dword [0x7741d0e0]
mov ecx, ebx
call esi
mov edi, dword [ebp + 0xc]
test dword [edi + 8], eax
je 0x77414072
cmp dword [edi + 0xc], 3
jne 0x77413b42
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x77414072
test byte [eax + 0xa0], 1
je 0x77414072
movzx ecx, word [edi + 0x10]
test cl, 2
je 0x77414072
mov edx, dword [ebp + 8]
cmp edx, dword [ebx + 0x1d8]
je 0x77414072
and ecx, 4
je 0x77413a5f
cmp edx, dword [ebx + 0x18]
je 0x77413a5f
cmp edx, dword [ebx + 0x1c]
jne 0x77414072
mov esi, dword [ebx + 0xc]
xor eax, eax
test cx, cx
setne al
lea eax, [eax*4 + 0xa]
mov ecx, eax
test esi, esi
je 0x77413a80
test byte [esi + 0x58], 1
je 0x77413a80
or ecx, 0x20
mov eax, dword [ebp + 0x38]
cmp byte [eax], 0
je 0x77413a8b
or ecx, 0x40
movsx eax, word [edi + 6]
push ebx
push dword [ebx + 0x1c]
movsx esi, word [ebp + 0x28]
add eax, edx
push eax
push dword [ebx + 0x1c4]
lea eax, [ebx + 0x248]
push dword [ebx + 0x1c8]
push ecx
push eax
lea eax, [ebx + 0xf0]
push eax
lea eax, [ebx + 0x24]
push eax
push ecx
mov ecx, dword [ebx + 0x1bc]
push esi
push dword [ebp + 0x2c]
call fcn.77410164
mov eax, dword [ebp + 0x38]
mov byte [eax], 1
mov eax, dword [ebx + 0x1bc]
test byte [eax + 0x44], 1
je 0x77414072
mov eax, dword [ebx + 4]
test eax, eax
je 0x77414072
mov edx, dword [eax + 0x30]
test edx, edx
je 0x77414072
xor ecx, ecx
cmp dword [eax + 0x34], ecx
je 0x77414072
mov eax, dword [ebx + 0x1c4]
mov al, byte [esi + eax]
mov byte [esi + edx], al
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 0x1c8]
mov ecx, dword [eax + 0x34]
mov eax, dword [edx + esi*4]
mov dword [ecx + esi*4], eax
jmp 0x77414072
imul ecx, eax, 0xc
mov eax, dword [ebx + 0x244]
mov esi, dword [ecx + eax + 4]
mov dword [ebp - 0x14], esi
cmp dword [ecx + eax + 8], edx
jne 0x77414072
jmp 0x774139e9
cmp dword [edi + 0xc], 2
jne 0x77413da5
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
mov esi, dword [eax + 0x40]
lea eax, [ebp - 0xc]
push eax
push 0x58
push ecx
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
js 0x77414072
movzx eax, word [edi + 4]
mov esi, dword [ebp + 0x10]
mov ecx, esi
push eax
call fcn.77407b0a
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x1c], edx
je 0x77413bd3
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [eax + 0x4a], cx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4e], cl
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4f], cl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov word [eax + 0x4c], cx
mov ecx, dword [ebp - 0xc]
imul eax, edx, 0x2710
cdq
add eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
adc edx, dword [ebp + 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x14], 0x41
jmp 0x77413c4d
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413bf8
mov al, byte [esi]
mov byte [ebp - 2], al
test al, al
je 0x77413bf8
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 2]
cdq
idiv ecx
mov ecx, eax
jmp 0x77413bfa
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov word [eax + 0x4a], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77412908
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov byte [ecx + 0x4e], al
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413c24
movzx eax, word [edi + 4]
div ecx
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x4f], dl
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 6]
mov edx, dword [ebp + 0x18]
mov word [eax + 0x4c], cx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x14]
mov dword [eax + 0x40], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x1c]
mov word [eax + 0x48], cx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x21]
mov byte [eax + 0x53], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x28], 5
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x18]
mov word [eax + 0x44], cx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x1a]
mov word [eax + 0x46], cx
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x1e]
mov byte [eax + 0x50], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x1f]
mov byte [eax + 0x51], cl
mov eax, dword [ebp - 0xc]
mov cl, byte [edi + 0x20]
mov byte [eax + 0x52], cl
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x22]
mov word [eax + 0x54], cx
mov eax, dword [ebp - 0xc]
mov cx, word [edi + 0x24]
mov word [eax + 0x56], cx
mov eax, dword [ebp - 0xc]
or dword [eax + 0x14], 0x80
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x77413d37
mov edi, dword [ebp + 0x14]
add edi, edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
lea esi, [edi + eax]
mov eax, dword [edx + 0x38]
add eax, ecx
cmp eax, esi
jl 0x77413d15
mov dword [edx + 0x3c], ecx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
jmp 0x77413d37
sub ecx, edi
xor eax, eax
sub ecx, dword [ebp + 0x34]
add dword [edx + 0x40], ecx
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x40], eax
jge 0x77413d2d
mov dword [ecx + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x10], esi
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x51], 1
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
push 0x77401ba4
push ecx
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
js 0x77413d7f
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x7741d0e0]
call esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x7741d0e0]
call esi
mov ebx, dword [ebp + 0x24]
push dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
jns 0x77414072
push dword [ebp - 0xc]
jmp 0x77414062
cmp dword [edi + 0xc], 1
jne 0x77414072
mov al, byte [edi + 0x1b]
mov byte [ebp - 2], al
test al, 0x10
je 0x77413dc7
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov al, byte [eax + 0x9c]
mov byte [ebp - 2], al
mov byte [ebp - 0x18], al
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
push dword [ebp + 0x24]
lea eax, [ebx + 0x1e0]
push eax
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x7741d0e0]
mov ecx, ebx
call esi
mov ecx, dword [ebp + 0x2c]
push eax
push dword [ebp - 0x18]
lea eax, [ebx + 0x24]
push eax
push edi
call 0x77426f53
test eax, eax
js 0x77414072
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
mov esi, dword [eax + 0x40]
lea eax, [ebp - 0x10]
push eax
push 0x50
push ecx
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
js 0x77414072
mov cl, byte [edi + 0x20]
mov eax, dword [ebp - 0x10]
or cl, 1
mov esi, dword [ebp + 0x10]
mov byte [eax + 0x45], cl
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77407b0a
add eax, dword [ebp + 0x14]
movsx edx, word [edi + 6]
add edx, eax
cmp dword [ebp + 0x30], 0
mov dword [ebp - 0x20], edx
je 0x77413ea0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + 0x3e], cx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x42], cl
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0x10]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov ecx, dword [ebp - 0x10]
imul eax, edx, 0x2710
cdq
add eax, dword [ebp + 0x1c]
mov dword [ecx + 8], eax
adc edx, dword [ebp + 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0x41
jmp 0x77413f1e
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413ec5
mov al, byte [esi]
mov byte [ebp - 3], al
test al, al
je 0x77413ec5
movzx eax, word [edi + 4]
xor edx, edx
div ecx
movzx ecx, byte [ebp - 3]
cdq
idiv ecx
mov ecx, eax
jmp 0x77413ec7
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + 0x3e], cx
mov ecx, esi
movzx eax, word [edi + 4]
push eax
call fcn.77412908
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x42], al
movzx ecx, word [esi + 2]
test cx, cx
je 0x77413ef4
movzx eax, word [edi + 4]
xor edx, edx
div ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + 0x43], cl
mov eax, dword [ebp - 0x10]
mov cx, word [edi + 6]
mov word [eax + 0x40], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 2
mov cl, byte [edi + 0x17]
test cl, cl
je 0x77413f30
call fcn.77413499
mov ecx, dword [ebp - 0x10]
add dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x38], ecx
mov cl, byte [edi + 0x18]
test cl, cl
je 0x77413f4b
call fcn.77413499
mov ecx, dword [ebp - 0x10]
add dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x16]
mov byte [eax + 0x44], cl
cmp byte [edi + 0x19], 0
je 0x77413f71
movzx esi, byte [edi + 0x19]
call dword [sym.imp.msvcrt.dll_rand]
cdq
idiv esi
mov eax, dword [ebp - 0x10]
shr esi, 1
sub edx, esi
add byte [eax + 0x44], dl
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
cmp byte [ecx + 0x44], dl
jae 0x77413f82
mov byte [ecx + 0x44], dl
mov ecx, dword [ebp - 0x10]
cmp byte [ecx + 0x44], 0x7f
jbe 0x77413f8f
mov byte [ecx + 0x44], 0x7f
mov ecx, dword [ebp - 0x10]
mov ax, word [edi + 0x14]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 1]
mov byte [ecx + 0x4b], al
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp - 2]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x49], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp + 0x2c]
mov cl, byte [eax + 9]
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4a], cl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x34c]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x17]
mov byte [eax + 0x46], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x18]
mov byte [eax + 0x47], cl
mov eax, dword [ebp - 0x10]
mov cl, byte [edi + 0x19]
mov byte [eax + 0x48], cl
mov ecx, dword [ebp - 0x10]
mov al, byte [ebp - 8]
mov byte [ecx + 0x4c], al
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [ebp - 0x18]
push eax
push 0x77401ba4
push ecx
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
js 0x77414045
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x7741d0e0]
call esi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x7741d0e0]
call esi
mov ebx, dword [ebp + 0x24]
push dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x7741d0e0]
call esi
test eax, eax
jns 0x77414072
push dword [ebp - 0x10]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x44]
mov ecx, esi
call dword [0x7741d0e0]
call esi
pop edi
pop esi
pop ebx
leave
ret 0x34