Function at 0x4059cf
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0xa0
push 0
push esi
call fcn.0066f220
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 8]
movzx ecx, byte [edi + 9]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0xa
and cl, 0x1f
add cl, 0x40
mov byte [ebp + 0xc], cl
mov ecx, eax
shr ecx, 5
and cl, 0x1f
and al, 0x1f
add cl, 0x40
add al, 0x40
add esp, 0xc
cmp dword [0x71fa18], 0
mov byte [ebp + 0xd], cl
mov byte [ebp + 0xe], al
mov byte [ebp + 0xf], 0
mov ebx, 0x71fa18
je OpenServiceA
lea eax, [ebp + 0xc]
push eax
push dword [ebx]
call fcn.0068d030
pop ecx
pop ecx
test eax, eax
je 0x405a49
add ebx, 8
cmp dword [ebx], 0
jne 0x405a2e
jmp OpenSCManagerA
push dword [ebx + 4]
lea eax, [esi + 0x80]
push 0x20
push eax
call fcn.0067eece
add esp, 0xc
movzx eax, byte [edi + 0xa]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
movzx eax, byte [edi + 0xb]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0x58]
push str._s_02X_02X
push eax
call ebx
movzx eax, byte [edi + 0x13]
push eax
movzx eax, byte [edi + 0x12]
push eax
lea eax, [esi + 0x50]
push str._X._X
push eax
call ebx
lea ebx, [edi + 0x36]
add esp, 0x24
mov eax, ebx
xor ecx, ecx
cmp byte [eax + 2], 0
jne RegUnLoadKeyW
cmp byte [eax + 3], 0xfc
je 0x405ab2
inc ecx
add eax, 0x12
cmp ecx, 4
jl 0x405a9b
jmp 0x405ace
add eax, 5
xor ecx, ecx
mov dl, byte [eax]
cmp dl, 0xa
je 0x405ac9
mov byte [ecx + esi + 0x60], dl
inc ecx
inc eax
cmp ecx, 0xd
jl AccessCheck
mov byte [ecx + esi + 0x60], 0
cmp byte [edi + 0x13], 2
jb 0x405b0d
mov ecx, ebx
xor eax, eax
cmp byte [ecx + 2], 0
jne 0x405ae4
cmp byte [ecx + 3], 0xff
je 0x405aef
inc eax
add ecx, 0x12
cmp eax, 4
jl 0x405ad8
jmp 0x405b33
add ecx, 5
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0xa
je 0x405b06
mov byte [eax + esi + 0x70], dl
inc eax
inc ecx
cmp eax, 0xd
jl 0x405af4
mov byte [eax + esi + 0x70], 0
jmp 0x405b33
movzx eax, byte [edi + 0xf]
push eax
movzx eax, byte [edi + 0xe]
push eax
movzx eax, byte [edi + 0xd]
push eax
movzx eax, byte [edi + 0xc]
push eax
lea eax, [esi + 0x70]
push 0x71fcd8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
movzx eax, byte [edi + 0x10]
mov dword [esi + 0xc], eax
movzx eax, byte [edi + 0x11]
add eax, 0x7c6
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0x14]
mov dword [esi + 0x14], eax
movzx eax, byte [edi + 0x15]
mov dword [esi + 0x18], eax
movzx eax, byte [edi + 0x16]
fild dword [esi + 0x18]
push 2
push ecx
mov dword [ebp + 8], eax
mov dword [esi + 0x1c], eax
fstp dword [esp]
call fcn.0040583e
pop ecx
pop ecx
fstp dword [ebp - 4]
fild dword [ebp + 8]
push 2
push ecx
fstp dword [esp]
call fcn.0040583e
fstp dword [ebp + 8]
add esp, 4
fld dword [ebp + 8]
fadd dword [ebp - 4]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call PropVariantClear
fdiv qword [0x71fcd0]
pop ecx
fstp dword [esi + 0x48]
movzx eax, byte [edi + 0x17]
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
fdiv qword [0x78d608]
fadd qword [0x78d440]
fstp dword [esi + 0x4c]
movzx eax, byte [edi + 0x18]
shr eax, 5
and eax, 1
mov dword [esi], eax
movzx eax, byte [edi + 0x18]
shr eax, 6
and eax, 1
mov dword [esi + 4], eax
movzx eax, byte [edi + 0x18]
shr eax, 7
mov dword [esi + 8], eax
movzx eax, byte [edi + 0x23]
mov dword [esi + 0x40], eax
movzx eax, byte [edi + 0x24]
mov dword [esi + 0x44], eax
mov eax, ebx
xor ecx, ecx
cmp byte [eax + 2], 0
jne 0x405bfd
cmp byte [eax + 3], 0xfd
je 0x405c08
inc ecx
add eax, 0x12
cmp ecx, 4
jl 0x405bf1
jmp 0x405c2e
movzx ecx, byte [eax + 5]
mov dword [esi + 0x20], ecx
movzx ecx, byte [eax + 6]
mov dword [esi + 0x24], ecx
movzx ecx, byte [eax + 7]
mov dword [esi + 0x28], ecx
movzx ecx, byte [eax + 8]
mov dword [esi + 0x2c], ecx
movzx eax, byte [eax + 9]
imul eax, eax, 0xa
mov dword [esi + 0x3c], eax
test byte [edi + 0x18], 2
je 0x405cd1
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 2]
mov edi, 0xf0
mov ecx, eax
and ecx, edi
shl ecx, 4
or ecx, edx
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx + 7]
mov edx, ecx
and edx, edi
movzx edi, byte [ebx + 5]
shl edx, 4
or edx, edi
movzx edi, byte [ebx]
mov dword [ebp + 8], edx
movzx edx, byte [ebx + 1]
shl edx, 8
or edx, edi
mov edi, dword [ebp + 8]
imul edx, edx, 0x2710
mov dword [ebp + 0xc], edx
movzx edx, byte [ebx + 6]
fild dword [ebp + 0xc]
and ecx, 0xf
shl ecx, 8
or ecx, edx
add ecx, edi
mov dword [ebp + 0xc], ecx
fild dword [ebp + 0xc]
test ecx, ecx
jge 0x405c9e
fadd qword [0x78d820]
movzx ecx, byte [ebx + 3]
mov ebx, dword [ebp - 4]
and eax, 0xf
shl eax, 8
or eax, ecx
add eax, ebx
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
test eax, eax
jge 0x405cbf
fadd qword [0x78d820]
fmulp st(1)
fdivp st(1)
call fcn.00648a70
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
pop edi
pop esi
pop ebx
leave
ret 8