Function at 0x4c5b40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.005080aa
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov esi, 0x52b2d1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
push dword [ebp + 8]
call fcn.004c5317
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.004c636c
cwde
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x5a4d
jne 0x4c630c
push 0x3c
push dword [ebp - 4]
call fcn.004c55be
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x44]
fadd qword [ebp - 0x44]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.0040101b
mov dword [ebp - 0x10], eax
push 0
push dword [ebp - 0x10]
call fcn.004c55be
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x4550
jne 0x4c6302
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x68cada]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.0040101b
push eax
call fcn.004c636c
cwde
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10b
jne 0x4c5c66
mov dword [ebp - 0x18], 0xf8
jmp 0x4c5c7d
cmp dword [ebp - 8], 0x20b
jne 0x4c5c7d
mov eax, 0xffffffff
jmp 0x4c6316
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x5fb76a]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.0040101b
push eax
call fcn.004c636c
mov word [ebp - 0x1c], ax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x44]
fadd qword [ebp - 0x44]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.0040101b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x1c]
cwde
cmp eax, 0
jge 0x4c5ce8
push 0x412
push 0x4016993
push 0xa
call fcn.005080bc
add esp, 0xc
mov dword [ebp - 0x38], eax
lea ebx, [ebp - 0x3c]
call fcn.004028df
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.005080aa
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x38]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x24]
call fcn.004028df
pop edx
test ecx, ecx
je 0x4c5d4d
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005080b0
add esp, 4
pop ebx
call fcn.005080b0
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x4c5d29
pop edx
pop edi
test edx, edx
je 0x4c5d9f
mov ebx, edi
push edx
push ebx
push 0x28
call fcn.005080aa
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xa
rep stosd dword es:[edi], eax
push ebx
push 0x10
call fcn.005080aa
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x68cae2
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ebx
pop edx
add ebx, 4
dec edx
jne 0x4c5d57
push dword [ebp - 0x24]
call fcn.005080b0
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
cwde
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4c5fc0
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4c5df0
push 0x473
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c5e0d
push 0x473
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x38], ebx
fild dword [ebp - 0x28]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [0x52b4e3]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x5f7cfc]
fstp qword [ebp - 0x50]
fild dword [ebp - 0x20]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fadd qword [ebp - 0x50]
fstp qword [ebp - 0x60]
mov dword [ebp - 0x64], esp
push 0x28
fld qword [ebp - 0x60]
call fcn.0040101b
push eax
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
push eax
push 0x28
call fcn.005080aa
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], eax
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x64], esp
je 0x4c5f08
push 0x4c7
push 0x4016993
push 6
call fcn.005080bc
add esp, 0xc
mov ebx, dword [ebp - 0x68]
push ebx
mov edi, dword [ebp - 0x6c]
push ebx
push edi
push 1
mov eax, 2
call fcn.005092b0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4c5f3e
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4c5f3c
imul eax, dword [edi]
jmp 0x4c5f31
mov ecx, eax
cmp ecx, 8
jle 0x4c5f48
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.005080b0
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x4c5dbb
add esp, 0xc
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
cwde
dec eax
jns 0x4c5feb
push 0x539
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c6008
push 0x539
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
cwde
dec eax
jns 0x4c603d
push 0x562
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c605a
push 0x562
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x3c]
push dword [ebx]
call fcn.004c6388
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x38]
fild dword [ebx]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fild dword [ebp - 0x40]
fstp qword [ebp - 0x50]
fadd qword [ebp - 0x50]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.0040101b
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.004c6421
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x34]
push eax
push 0x1000
push dword [ebp - 4]
push dword [ebp - 0x30]
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
cmp dword [ebp - 0x38], esp
je 0x4c60de
push 0x5cf
push 0x4016993
push 6
call fcn.005080bc
add esp, 0xc
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp + 0xc]
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 3
mov ebx, 0x914
call fcn.00509b40
add esp, 0x28
fild dword [ebp - 0x30]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x44]
fadd qword [ebp - 0x44]
fadd qword [0x5f7d15]
fstp qword [ebp - 0x4c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x4c]
call fcn.0040101b
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 3
mov ebx, 0x914
call fcn.00509b40
add esp, 0x28
mov eax, dword [ebp - 0x1c]
cwde
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4c62f7
mov dword [ebp - 0x34], 0
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4c61ac
push 0x737
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c61c9
push 0x737
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x38], ebx
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
mov ebx, dword [ebp - 0x38]
fild dword [ebx]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4c6214
push 0x768
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c6231
push 0x768
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x54], ebx
fild dword [ebp - 4]
fstp qword [ebp - 0x5c]
fld qword [ebp - 0x5c]
mov ebx, dword [ebp - 0x54]
fild dword [ebx]
fstp qword [ebp - 0x64]
fadd qword [ebp - 0x64]
fstp qword [ebp - 0x6c]
mov ebx, dword [ebp - 0x24]
call fcn.004028df
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4c627c
push 0x768
push 0x4016993
push 4
call fcn.005080bc
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4c6299
push 0x768
push 0x4016993
push 1
call fcn.005080bc
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esp
lea eax, [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x70]
push dword [ebx]
fld qword [ebp - 0x6c]
call fcn.0040101b
push eax
fld qword [ebp - 0x50]
call fcn.0040101b
push eax
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
nop
cmp dword [ebp - 0x74], esp
je 0x4c62ef
push 0x768
push 0x4016993
push 6
call fcn.005080bc
add esp, 0xc
pop eax
pop ebx
pop ecx
jmp 0x4c6170
add esp, 0xc
mov eax, dword [ebp - 0x30]
jmp 0x4c6316
mov eax, 0xffffffff
jmp 0x4c6316
mov eax, 0xffffffff
jmp 0x4c6316
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4c6335
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4c6331
imul eax, dword [ebx]
jmp 0x4c6326
mov ecx, eax
test ecx, ecx
je 0x4c635d
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.005080b0
add esp, 4
pop ebx
call fcn.005080b0
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4c633b
call fcn.005080b0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8