Function at 0x4d4cb0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557ade
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x5932e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x160], 0
lea ecx, [ebp - 0x1ac]
push 5
push str.d.dll
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
call fcn.00409ab0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x194]
push 1
push 0x577b34
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
call fcn.00409ab0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x194]
lea ecx, [ebp - 0x15c]
call fcn.00409da0
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x180]
cmp edx, 0x10
jb 0x4d4da5
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4d9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5241
push edx
push ecx
call fcn.005150f8
add esp, 8
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x198]
cmp edx, 0x10
jb 0x4d4dfe
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4df4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5246
push edx
push ecx
call fcn.005150f8
add esp, 8
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x19c], 0
cmovae eax, dword [ebp - 0x15c]
push eax
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x59f084], eax
test eax, eax
jne 0x4d51ec
push 0x577b44
push 0x71
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4d4ea9
mov esi, 0xfffffd66
jmp 0x4d51ee
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x12c], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d4ed0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00409ab0
push ecx
push 0x5c
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 5
call fcn.004561b0
push eax
push 0
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0043c3d0
mov esi, eax
lea eax, [ebp - 0x12c]
cmp eax, esi
je 0x4d4f4e
mov ecx, eax
call fcn.00409830
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x11c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x168]
cmp edx, 0x10
jb 0x4d4f88
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d4f7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d524b
push edx
push ecx
call fcn.005150f8
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x17c]
mov eax, dword [ebp - 0x11c]
inc eax
mov dword [ebp - 0x16c], 0
push eax
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
mov dword [ebp - 0x160], 1
call fcn.00409fe0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x17c]
push eax
call fcn.00409bf0
push 1
push 0x577b40
lea ecx, [ebp - 0x17c]
call fcn.00409bf0
lea eax, [ebp - 0x15c]
push eax
lea edx, [ebp - 0x17c]
lea ecx, [ebp - 0x144]
call fcn.00409d40
mov edx, dword [ebp - 0x168]
add esp, 4
cmp edx, 0x10
jb 0x4d5051
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5047
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5250
push edx
push ecx
call fcn.005150f8
add esp, 8
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push 0x577b4c
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.005221eb
mov esi, eax
push esi
push 1
push edi
push dword [ebp - 0x164]
call fcn.005208c5
push esi
call fcn.0051a2cd
push esi
call fcn.0051d76d
add esp, 0x20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
cmovae eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x59f084], eax
test eax, eax
jne 0x4d515d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x4d50fe
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d50f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5255
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp edx, 0x10
jb 0x4d5153
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5149
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d525a
push edx
push ecx
call fcn.005150f8
add esp, 8
mov esi, 0xfffffd66
jmp 0x4d51ee
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x4d5197
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d518d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d525f
push edx
push ecx
call fcn.005150f8
add esp, 8
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
cmp edx, 0x10
jb 0x4d51ec
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d51e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5264
push edx
push ecx
call fcn.005150f8
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x4d5224
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d521a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d5269
push edx
push ecx
call fcn.005150f8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
call fcn.00519e03
int3