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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468334
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x49f080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x4a1990]
cmp eax, dword [esi + 4]
jle 0x4105d3
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x4105d3
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.dll_copy_msg
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00404d90
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x410616
mov ecx, dword [eax]
push dword [eax + 0x10]
mov edx, edi
push ecx
lea ecx, [ebp - 0x84]
call fcn.00418030
mov dword [ebp - 0x38], eax
push 0xb8
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00445500
add esp, 0x14
lea ecx, [ebp - 0x13c]
push 0x49fb38
call fcn.00408b20
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x410669
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x12c]
call fcn.00422530
lea eax, [ebp - 0x12c]
push eax
call fcn.00417ed0
add esp, 8
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x4106a7
lea eax, [ebp - 0x13c]
push eax
call fcn.00417870
lea ecx, [ebp - 0x13c]
call fcn.00408c60
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x4106f3
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4106e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410da5
push ecx
push edx
call fcn.00443876
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
cmp ecx, 0xf
jbe 0x410745
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41073b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410da5
push ecx
push edx
call fcn.00443876
add esp, 8
push 0xa
push 0xfa0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x410893
mov eax, dword [0x4a1990]
cmp eax, dword [esi + 4]
jle 0x4107a3
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x4107a3
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.dll_error_msg_1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00404d90
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 4
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov esi, eax
push 0xb8
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 5
push 0
push eax
call fcn.00445500
add esp, 0xc
lea ecx, [ebp - 0x13c]
push 0x49fb3c
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], 4
jbe 0x41081a
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.00422530
lea eax, [ebp - 0x12c]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x410851
lea eax, [ebp - 0x13c]
push eax
call fcn.00417870
lea ecx, [ebp - 0x13c]
call fcn.00408c60
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4109d5
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4109cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410daa
jmp 0x4109cb
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4109dc
mov eax, dword [0x4a1990]
cmp eax, dword [esi + 4]
jle 0x4108e8
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x4108e8
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.dll_error_msg_2
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.00404d90
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 7
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov esi, eax
push 0xb8
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 8
push 0
push eax
call fcn.00445500
add esp, 0xc
lea ecx, [ebp - 0x13c]
push 0x49fb3c
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], 8
jbe 0x41095f
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.00422530
lea eax, [ebp - 0x12c]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x410996
lea eax, [ebp - 0x13c]
push eax
call fcn.00417870
lea ecx, [ebp - 0x13c]
call fcn.00408c60
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4109d5
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4109cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410daf
push ecx
push edx
call fcn.00443876
add esp, 8
xor al, al
jmp 0x410d88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [edi + 0x10]
mov ecx, 0x7ffffffe
sub ecx, edx
mov dword [ebp - 0x38], eax
cmp ecx, 1
jb 0x410db4
cmp dword [edi + 0x14], 7
jbe 0x410a0f
mov edi, dword [edi]
push 1
push 0x4914e0
push edx
push edi
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.0041af60
mov dword [ebp - 0x34], 0x10
push 0x621a58
lea edx, [ebp - 0x50]
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.00417f70
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x410a83
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410a79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410db9
push ecx
push edx
call fcn.00443876
add esp, 8
push 0
push 0x80
push 2
xor eax, eax
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x18], 7
push 0
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push 0
push 0x40000000
push eax
mov dword [ebp - 0x3c], 7
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410bfc
mov eax, dword [0x4a1990]
cmp eax, dword [esi + 4]
jle 0x410b09
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], edi
jne 0x410b09
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
push str.dll_error_msg_3
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00404d90
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov esi, eax
push 0xb8
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xe
push 0
push eax
call fcn.00445500
add esp, 0xc
lea ecx, [ebp - 0x13c]
push 0x49fb3c
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], 0x30
jbe 0x410b7d
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x12c]
call fcn.00422530
lea eax, [ebp - 0x12c]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x410bb4
lea eax, [ebp - 0x13c]
push eax
call fcn.00417870
lea ecx, [ebp - 0x13c]
call fcn.00408c60
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x410bf3
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410be9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410dbe
push ecx
push edx
call fcn.00443876
add esp, 8
mov byte [ebp - 0x2d], 0
jmp 0x410d4f
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4a1990]
cmp eax, dword [esi + 4]
jle 0x410c61
push 0x4a1990
call fcn.00443b49
add esp, 4
cmp dword [0x4a1990], 0xffffffff
jne 0x410c61
push 0x46b8f0
mov dword [0x4a19c4], 0
call fcn.00443861
push 0x4a1990
call fcn.00443af8
add esp, 8
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
push str.dll_copied_msg
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x6c], xmm0
call fcn.00404d90
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 0x10
push eax
mov ecx, 0x4a19a0
call fcn.00432fb0
mov esi, eax
push 0xb8
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 0x11
push 0
push eax
call fcn.00445500
add esp, 0xc
lea ecx, [ebp - 0x1f4]
push 0x49fb38
call fcn.00408b20
cmp dword [esi + 0x14], 7
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], 0x50
jbe 0x410cd5
mov esi, dword [esi]
push eax
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00422530
lea eax, [ebp - 0x1e4]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x410d0c
lea eax, [ebp - 0x1f4]
push eax
call fcn.00417870
lea ecx, [ebp - 0x1f4]
call fcn.00408c60
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x410d4b
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410d41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410dc3
push ecx
push edx
call fcn.00443876
add esp, 8
mov byte [ebp - 0x2d], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x410d85
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410d7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410dc8
push ecx
push edx
call fcn.00443876
add esp, 8
mov al, byte [ebp - 0x2d]
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.004435e2
mov esp, ebp
pop ebp
ret 4
call fcn.004483fa
call fcn.004483fa
call fcn.004483fa
call fcn.00403570
call fcn.004483fa
call fcn.004483fa
call fcn.004483fa
call fcn.004483fa
int3