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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49da2e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4e20c0]
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 - 0x30], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x436edc
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x436edc
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 0
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6664a8
call fcn.0046eab3
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.0041c9d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x436f1f
mov edx, dword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 4
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x436f30
mov ecx, dword [edi]
mov eax, dword [edi + 0x10]
sub esp, 8
mov dword [ebp - 0x58], eax
mov eax, esp
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0xc0000000
push esi
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x78]
push edx
mov dword [eax], 1
call fcn.0043bd80
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0x1c
lea ecx, [ebp - 0x130]
push 0x4e2b98
call fcn.004324d0
cmp dword [ebp - 0x64], 7
lea edx, [ebp - 0x78]
push dword [ebp - 0x68]
cmova edx, dword [ebp - 0x78]
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x30], 3
call fcn.0043cec0
lea eax, [ebp - 0x120]
push eax
call fcn.0043a020
mov esi, 3
add esp, 8
mov dword [ebp - 0x30], esi
and esi, 0xfffffffd
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x130]
call fcn.004325d0
and esi, 0xfffffffe
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00416650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
push 0xa
push 0xfa0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x437137
mov edx, dword fs:[0x2c]
mov eax, dword [0x6664a8]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jle 0x437079
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x437079
mov dword [ebp - 4], 6
mov dword [ebp - 0x38], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 6
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6664a8
call fcn.0046eab3
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.0041c9d0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4e2b9c
call fcn.004324d0
or esi, 4
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x4370ef
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043cec0
lea eax, [ebp - 0x120]
push eax
call fcn.0043a020
add esp, 8
and esi, 0xfffffffb
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
call fcn.004325d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416aa0
xor al, al
jmp 0x437562
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x437250
mov edx, dword fs:[0x2c]
mov eax, dword [0x6664a8]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jle 0x4371ae
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x4371ae
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x38], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 0xb
push 0x4a2f10
call fcn.0046efd1
mov dword [ebp - 4], 0xffffffff
push 0x6664a8
call fcn.0046eab3
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.0041c9d0
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4e2b9c
call fcn.004324d0
or esi, 8
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x437224
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043cec0
lea eax, [ebp - 0x120]
push eax
call fcn.0043a020
add esp, 8
and esi, 0xfffffff7
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0xe
jmp 0x437116
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0x10
mov ecx, 0x7ffffffe
mov edx, dword [edi + 0x10]
sub ecx, edx
cmp ecx, 1
jb 0x43757f
cmp dword [edi + 0x14], 7
jbe 0x43728a
mov edi, dword [edi]
push 1
push 0x4ca23c
push edx
push edi
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00421500
or esi, 0x10
lea edx, [ebp - 0x50]
push 0x6663b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.0041ba60
add esp, 4
mov byte [ebp - 4], 0x11
and esi, 0xffffffef
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00416650
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437415
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x43735b
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], edi
jne 0x43735b
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x38], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 0x13
push 0x4a2f10
call fcn.0046efd1
mov byte [ebp - 4], 0x12
push 0x6664a8
call fcn.0046eab3
add esp, 8
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.dll_error_msg_3
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edi, eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4e2b9c
call fcn.004324d0
or esi, 0x40
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x4373ce
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043cec0
lea eax, [ebp - 0x120]
push eax
call fcn.0043a020
and esi, 0xffffffbf
add esp, 8
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x130]
call fcn.004325d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00416aa0
mov byte [ebp - 0x31], 0
jmp 0x437550
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6664a8]
cmp eax, dword [ecx + 4]
jle 0x437495
push 0x6664a8
call fcn.0046eb04
add esp, 4
cmp dword [0x6664a8], 0xffffffff
jne 0x437495
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x38], 0x6664b0
mov dword [0x6664d4], 0
mov byte [ebp - 4], 0x18
push 0x4a2f10
call fcn.0046efd1
mov byte [ebp - 4], 0x12
push 0x6664a8
call fcn.0046eab3
add esp, 8
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.dll_copied_msg
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
call fcn.0041c9d0
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x6664b0
call fcn.00449070
mov edi, eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.004709e0
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4e2b98
call fcn.004324d0
or esi, 0x80
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x43750b
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043cec0
lea eax, [ebp - 0x120]
push eax
call fcn.0043a020
and esi, 0xffffff7f
add esp, 8
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x130]
call fcn.004325d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00416aa0
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416650
mov al, byte [ebp - 0x31]
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.0046ea75
mov esp, ebp
pop ebp
ret 4
call fcn.00403770
int3