Function at 0x4d2a40
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x298]
xor bl, bl
push eax
push 1
push 0
push 0x57d79c
call fcn.004d9ef0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
push eax
push reloc.WSOCK32.dll_bind
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d2af8
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x104
push eax
lea eax, [ebp - 0x190]
push eax
push 0
push 0
push 0x57d7c8
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0x298]
call edi
test eax, eax
jne 0x4d2aec
cmp dword [0x6df6a4], eax
je 0x4d2aec
lea eax, [ebp - 0x190]
push eax
push 0x57d7d4
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x298]
push eax
push 3
push 0
push 0x57d7e8
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x4d3066
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x104
push eax
lea eax, [ebp - 0x190]
push eax
push 0
push 0
push 0x57d84c
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0x298]
call edi
test eax, eax
jne 0x4d2b9d
cmp dword [0x6df6a4], eax
je 0x4d2b9d
movzx eax, byte [ebp - 0x18d]
push eax
movzx eax, byte [ebp - 0x18e]
push eax
movzx eax, byte [ebp - 0x18f]
push eax
movzx eax, byte [ebp - 0x190]
push eax
push 0x57d85c
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x57d880
call fcn.004d9ef0
mov edx, eax
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4d2bc0
lea edi, [ebp - 0x294]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4d2bd0
mov ecx, edx
lea eax, [ebp - 0x294]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d2c43
cmp dword [0x6df6a4], edi
je 0x4d2c7e
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x57c6c4
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0x10
jmp 0x4d2c7e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x6df6a4], 0
mov edi, eax
je 0x4d2c77
push edi
push 0x57c6dc
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x57d6fc
call fcn.004d9ef0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4d2dd2
push 0x57d70c
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d59a0
push 0x57d728
mov dword [ebp - 0x29c], eax
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d59a0
push 0x57d740
mov dword [ebp - 0x2a4], eax
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d59a0
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2b0], eax
test ecx, ecx
je 0x4d2dcb
cmp dword [ebp - 0x2a4], 0
je 0x4d2dcb
test eax, eax
je 0x4d2dcb
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
call ecx
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x4d2dcb
push eax
call fcn.005238ab
add esp, 4
mov dword [ebp - 0x29c], eax
push eax
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x294]
push dword [ebp - 0x2ac]
push eax
call dword [ebp - 0x2a4]
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x2b4]
push eax
push 0x57c370
push dword [ebp - 0x29c]
call dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x2b4]
cmp dword [ecx], 0xfeef04bd
jne 0x4d2dbd
cmp dword [0x6df6a4], 0
je 0x4d2dbd
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x57d894
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0x18
push dword [ebp - 0x29c]
call fcn.005238b4
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 0x18d10
jne 0x4d2f06
cmp dword [0x6df6a4], 0
je 0x4d2e03
push 0x57d8ac
call fcn.004d9ef0
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
push 0x88
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x100ec72a
push eax
push 3
push 0
mov dword [ebp - 0x88], 0xcda7be06
mov dword [ebp - 0x84], 0xf66faf5
mov dword [ebp - 0x80], 0x418aa386
mov dword [ebp - 0x7c], 0x6eafc758
mov dword [ebp - 0x78], 0x3d92c1f5
mov dword [ebp - 0x74], 0x81a856f5
mov dword [ebp - 0x70], 0x7c892e48
mov dword [ebp - 0x6c], 0xe3533604
mov dword [ebp - 0x68], 0x34167964
mov dword [ebp - 0x64], 0xaeb0e87d
mov dword [ebp - 0x60], 0xebc53cd7
mov dword [ebp - 0x5c], 0xf22d257a
mov dword [ebp - 0x58], 0xf2f4e4b8
mov dword [ebp - 0x54], 0xdd0b95cd
mov dword [ebp - 0x50], 0x279f0a4f
mov dword [ebp - 0x4c], 0x52f6b519
mov dword [ebp - 0x48], 0x2c017716
mov dword [ebp - 0x44], 0xd39aaef6
mov dword [ebp - 0x40], 0x226abf7f
mov dword [ebp - 0x3c], 0xdbf36b91
mov dword [ebp - 0x38], 0xd21c0d93
mov dword [ebp - 0x34], 0x14b8b500
mov dword [ebp - 0x30], 0x949e3e1c
mov dword [ebp - 0x2c], 0xc68ea97b
mov dword [ebp - 0x28], 0xfa2bf584
mov dword [ebp - 0x24], 0xa50095b5
mov dword [ebp - 0x20], 0x8c65b295
mov dword [ebp - 0x1c], 0x771931
mov dword [ebp - 0x18], 0x924e5bcd
mov dword [ebp - 0x14], 0x6642e468
mov dword [ebp - 0x10], 0x93d4b517
push 0x57d8c8
jmp 0x4d3035
cmp edi, 0x17110
jne 0x4d305a
cmp dword [0x6df6a4], 0
je 0x4d2f37
push 0x57d8d8
call fcn.004d9ef0
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
push 0x88
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x5369715f
push eax
push 3
push 0
mov dword [ebp - 0x88], 0xac548e8a
mov dword [ebp - 0x84], 0x5a653f09
mov dword [ebp - 0x80], 0x15778d26
mov dword [ebp - 0x7c], 0x7bb689e
mov dword [ebp - 0x78], 0xb7f08fed
mov dword [ebp - 0x74], 0x150599f1
mov dword [ebp - 0x70], 0xd8a86480
mov dword [ebp - 0x6c], 0xa958c387
mov dword [ebp - 0x68], 0xb3fe26ce
mov dword [ebp - 0x64], 0x81a3d707
mov dword [ebp - 0x60], 0x76eb8be
mov dword [ebp - 0x5c], 0x17446815
mov dword [ebp - 0x58], 0x758081be
mov dword [ebp - 0x54], 0x21abdba1
mov dword [ebp - 0x50], 0x9cbc1fd1
mov dword [ebp - 0x4c], 0xe5f0491d
mov dword [ebp - 0x48], 0xb57f49dd
mov dword [ebp - 0x44], 0x39f009e4
mov dword [ebp - 0x40], 0x836b2a94
mov dword [ebp - 0x3c], 0xe56db0f
mov dword [ebp - 0x38], 0x129f61a3
mov dword [ebp - 0x34], 0x9020d7d4
mov dword [ebp - 0x30], 0x99c69b54
mov dword [ebp - 0x2c], 0xd503440c
mov dword [ebp - 0x28], 0xa02a9a1b
mov dword [ebp - 0x24], 0xf61c8ca2
mov dword [ebp - 0x20], 0x2e57a568
mov dword [ebp - 0x1c], 0x8fa54011
mov dword [ebp - 0x18], 0x6aec7177
mov dword [ebp - 0x14], 0x1ecba069
mov dword [ebp - 0x10], 0x5e08e20
push 0x57d8f4
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov bl, 1
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret