Function at 0x503d50
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x586eae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0xab5b48]
mov dword [esp + 8], ecx
mov edx, dword [eax + 0x85c]
mov al, byte [0xab5bad]
cmp edx, 0x9f2bafb7
sete byte [esp + 3]
test al, al
je 0x503d93
mov byte [esp + 3], 0
mov ecx, dword [ecx + 0x18]
mov byte [esp + 2], 0
call fcn.00405b50
test al, al
je 0x503da9
mov byte [esp + 2], 1
mov eax, dword [0xb084cc]
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
je 0x503e1d
mov ecx, dword [0xb084b8]
cmp ecx, ebp
jne 0x503dee
mov ecx, dword [str.Null_Pointer]
push ecx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
cmp ecx, ebp
jne 0x503dee
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0x108]
push eax
call fcn.00533cd0
push ebp
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov esi, eax
call fcn.00401180
mov ecx, eax
call fcn.00533d40
mov eax, esi
jmp 0x503e46
mov edx, dword [0x5ca258]
mov ecx, dword [edx*4 + 0x5ca24c]
cmp ecx, ebp
je 0x503e35
call fcn.005331c0
jmp 0x503e46
push ebp
push 1
push 8
call fcn.00401180
mov ecx, eax
call fcn.00533b80
mov dword [esp + 0xc], eax
cmp eax, ebp
mov dword [esp + 0xb8], ebp
je 0x503e60
mov ecx, eax
call fcn.00415710
mov esi, eax
jmp 0x503e62
xor esi, esi
push ebx
push str.current_menu_anchor
mov dword [esp + 0xc0], 0xffffffff
call fcn.00413eb0
add esp, 4
push eax
push 0x59f01c
call fcn.00413eb0
add esp, 4
mov ecx, esi
push eax
call fcn.00416a00
push ebp
push esi
xor bl, bl
call fcn.00428170
add esp, 8
cmp al, 1
jne 0x503ea3
mov bl, al
push str.dialog_box_anchor
call fcn.00413eb0
add esp, 4
push eax
push 0x59f01c
call fcn.00413eb0
add esp, 4
mov ecx, esi
push eax
call fcn.00416a00
push ebp
push esi
call fcn.00428170
add esp, 8
test al, al
je 0x503ed6
mov bl, 1
cmp esi, ebp
je 0x503f0e
mov ecx, esi
call fcn.004159e0
cmp dword [0xb084cc], ebp
jne 0x503f01
mov eax, dword [0x5ca258]
mov ecx, dword [eax*4 + 0x5ca24c]
cmp ecx, ebp
je 0x503f01
push esi
call fcn.005331e0
jmp 0x503f0e
push esi
call fcn.00401180
mov ecx, eax
call fcn.00533cb0
mov al, byte [esp + 0xc4]
test al, al
jne 0x503f2e
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x503f2e
mov cl, byte [esp + 0xe]
mov byte [0xab5bac], al
test cl, cl
je 0x503f35
mov byte [0xab5bac], 1
mov cl, byte [esp + 0xe]
push edi
test al, al
mov byte [0xab5bae], cl
mov byte [0xab5baf], bl
je 0x50400e
mov eax, dword [0xab5bb0]
inc eax
cmp eax, 0xc8
mov dword [0xab5bb0], eax
jbe 0x50400e
mov dword [0xab5bb0], ebp
call fcn.00574f80
cdq
mov ecx, 0x16
mov esi, dword [0x59a75c]
idiv ecx
xor eax, eax
mov edi, edx
lea edx, [esp + 0x1c]
add edi, 2
sub esi, edx
lea ecx, [esp + eax + 0x1c]
inc eax
cmp eax, 0xf
mov dl, byte [esi + ecx]
not dl
mov byte [ecx], dl
jb 0x503f8a
mov eax, dword [0x5b720c]
push ebp
push 0x20000080
push 3
mov ecx, dword [eax]
lea eax, [edi + 1]
push ebp
push 1
mov dl, byte [ecx]
mov ecx, 0xa
mov byte [esp + 0x30], dl
xor edx, edx
div ecx
push closesocket
add dl, 0x30
add al, 0x30
mov byte [esp + 0x3d], dl
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x40], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x503ff1
call fcn.00574f80
mov dword [edi*4 + 0x5b7270], eax
jmp 0x50400e
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
not eax
sub eax, 0x12d687
push esi
mov dword [edi*4 + 0x5b7270], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [0xab5bb4]
test al, al
jne 0x50402e
push ebp
push ebp
push ebp
push str.start_main_menu
call fcn.00413420
add esp, 0x10
mov byte [0xab5bb4], 1
mov eax, dword [0x5b7218]
mov ecx, dword [eax]
cmp byte [ecx], 0
jne 0x504041
mov byte [0xaab48c], 1
call fcn.0042cd80
mov esi, dword [0x63d290]
mov ecx, esi
call fcn.00437c60
mov bl, byte [esp + 0xc8]
test bl, bl
jne 0x50411c
mov edi, dword [esp + 0x18]
mov al, byte [edi + 0x3c]
test al, al
jne 0x504080
call fcn.00543d70
fmul dword [0x589410]
call fcn.005749d0
add dword [edi + 0x34], eax
call fcn.00543d70
fmul dword [0x589410]
call fcn.005749d0
mov ecx, dword [edi + 0x38]
add ecx, eax
mov dword [edi + 0x38], ecx
mov ecx, dword [0xb084b8]
cmp ecx, ebp
jne 0x5040d0
mov edx, dword [str.Null_Pointer]
push edx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
cmp ecx, ebp
jne 0x5040d0
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0xd4]
push eax
call fcn.00533cd0
mov ecx, esi
call fcn.00436b10
cmp dword [0xb084b8], ebp
jne 0x504111
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
cmp eax, ebp
jne 0x504111
call fcn.0052ff20
mov ecx, dword [0xb084b8]
call fcn.00533d40
mov ecx, dword [0xb084b8]
pop edi
cmp ecx, ebp
jne 0x504155
mov ecx, dword [str.Null_Pointer]
push ecx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov ecx, dword [0xb084b8]
add esp, 0xc
cmp ecx, ebp
jne 0x504155
call fcn.0052ff20
mov ecx, dword [0xb084b8]
mov eax, dword [ecx + 0xd4]
push eax
call fcn.00533cd0
call fcn.00413580
mov ecx, dword [0xab5b48]
call fcn.004f95e0
test bl, bl
pop ebx
je 0x504220
mov eax, dword [0xab5bb8]
inc eax
cmp eax, 0x12c
mov dword [0xab5bb8], eax
jbe 0x504220
mov eax, dword [0x5a1d20]
mov dword [0xab5bb8], ebp
xor esi, esi
mov cl, byte [eax]
cmp cl, 0xff
je 0x5041b9
lea edx, [esp + 0x24]
sub edx, eax
not cl
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc esi
inc eax
cmp cl, 0xff
jne 0x5041aa
lea edx, [esp + 0xc]
lea eax, [esp + 0x24]
push edx
push 1
push ebp
push eax
push reloc.WS2_32.dll_bind
mov byte [esp + esi + 0x38], 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x504220
lea ecx, [esp + 0x10]
mov byte [esp + 0x27], al
mov eax, dword [esp + 0xc]
push ecx
push str.SmoTheOneWasHere
push ebp
lea edx, [esp + 0x30]
push ebp
push edx
push eax
mov byte [esp + 0x3e], 0x79
mov dword [esp + 0x28], 0x11
mov byte [esp + 0x3d], 0x65
mov byte [esp + 0x3c], 0x4b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0xab5bcc]
test al, al
je 0x50424b
mov ecx, dword [0xab5b48]
mov byte [0xab5bcc], 0
call fcn.004fa1e0
push ebp
push eax
push ebp
push str.RunMeNow
call fcn.00413420
add esp, 0x10
cmp dword [0xb084b8], ebp
jne 0x50427a
mov edx, dword [str.Null_Pointer]
push edx
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
cmp eax, ebp
jne 0x50427a
call fcn.0052ff20
mov ecx, dword [0xb084b8]
call fcn.00533d40
mov ecx, dword [esp + 0xb0]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xb4
ret 4