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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abb7e
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4f0100]
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 [0x674804]
cmp eax, dword [ecx + 4]
jle 0x43751c
push 0x674804
call fcn.0047b571
add esp, 4
cmp dword [0x674804], 0xffffffff
jne 0x43751c
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0x674808
mov dword [0x67482c], 0
mov byte [ebp - 4], 0
push 0x4b1840
call fcn.0047ba41
mov dword [ebp - 4], 0xffffffff
push 0x674804
call fcn.0047b520
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.0041cd80
mov dword [ebp - 4], 3
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x674808
call fcn.0044aa90
mov edx, eax
cmp dword [eax + 0x14], 7
jbe 0x43755f
mov edx, dword [eax]
mov esi, dword [eax + 0x10]
mov byte [ebp - 4], 4
mov ecx, edi
cmp dword [edi + 0x14], 7
jbe 0x437570
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.0043c270
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.0047d590
add esp, 0x1c
lea ecx, [ebp - 0x130]
push 0x4f0c18
call fcn.00432ae0
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.0043d440
lea eax, [ebp - 0x120]
push eax
call fcn.0043a570
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.00432be0
and esi, 0xfffffffe
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00416820
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416c70
push 0xa
push 0xfa0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x437777
mov edx, dword fs:[0x2c]
mov eax, dword [0x674804]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jle 0x4376b9
push 0x674804
call fcn.0047b571
add esp, 4
cmp dword [0x674804], 0xffffffff
jne 0x4376b9
mov dword [ebp - 4], 6
mov dword [ebp - 0x38], 0x674808
mov dword [0x67482c], 0
mov byte [ebp - 4], 6
push 0x4b1840
call fcn.0047ba41
mov dword [ebp - 4], 0xffffffff
push 0x674804
call fcn.0047b520
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.0041cd80
mov dword [ebp - 4], 9
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x674808
call fcn.0044aa90
mov edi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.0047d590
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4f0c1c
call fcn.00432ae0
or esi, 4
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x43772f
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043d440
lea eax, [ebp - 0x120]
push eax
call fcn.0043a570
add esp, 8
and esi, 0xfffffffb
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
call fcn.00432be0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00416c70
xor al, al
jmp 0x437ba2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x437890
mov edx, dword fs:[0x2c]
mov eax, dword [0x674804]
mov ecx, dword [edx]
cmp eax, dword [ecx + 4]
jle 0x4377ee
push 0x674804
call fcn.0047b571
add esp, 4
cmp dword [0x674804], 0xffffffff
jne 0x4377ee
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x38], 0x674808
mov dword [0x67482c], 0
mov byte [ebp - 4], 0xb
push 0x4b1840
call fcn.0047ba41
mov dword [ebp - 4], 0xffffffff
push 0x674804
call fcn.0047b520
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.0041cd80
mov dword [ebp - 4], 0xe
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x674808
call fcn.0044aa90
mov edi, eax
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.0047d590
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4f0c1c
call fcn.00432ae0
or esi, 8
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x437864
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043d440
lea eax, [ebp - 0x120]
push eax
call fcn.0043a570
add esp, 8
and esi, 0xfffffff7
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0xe
jmp 0x437756
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 0x437bbf
cmp dword [edi + 0x14], 7
jbe 0x4378ca
mov edi, dword [edi]
push 1
push 0x4d823c
push edx
push edi
push ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.004218c0
or esi, 0x10
lea edx, [ebp - 0x50]
push 0x67473c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
call fcn.0041be10
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.00416820
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 0x437a55
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x674804]
cmp eax, dword [ecx + 4]
jle 0x43799b
push 0x674804
call fcn.0047b571
add esp, 4
cmp dword [0x674804], edi
jne 0x43799b
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x38], 0x674808
mov dword [0x67482c], 0
mov byte [ebp - 4], 0x13
push 0x4b1840
call fcn.0047ba41
mov byte [ebp - 4], 0x12
push 0x674804
call fcn.0047b520
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.0041cd80
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x674808
call fcn.0044aa90
mov edi, eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.0047d590
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4f0c1c
call fcn.00432ae0
or esi, 0x40
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x437a0e
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043d440
lea eax, [ebp - 0x120]
push eax
call fcn.0043a570
and esi, 0xffffffbf
add esp, 8
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x130]
call fcn.00432be0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00416c70
mov byte [ebp - 0x31], 0
jmp 0x437b90
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 [0x674804]
cmp eax, dword [ecx + 4]
jle 0x437ad5
push 0x674804
call fcn.0047b571
add esp, 4
cmp dword [0x674804], 0xffffffff
jne 0x437ad5
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x38], 0x674808
mov dword [0x67482c], 0
mov byte [ebp - 4], 0x18
push 0x4b1840
call fcn.0047ba41
mov byte [ebp - 4], 0x12
push 0x674804
call fcn.0047b520
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.0041cd80
mov byte [ebp - 4], 0x1b
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x674808
call fcn.0044aa90
mov edi, eax
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x130]
push 0xb8
push 0
push eax
call fcn.0047d590
add esp, 0xc
lea ecx, [ebp - 0x130]
push 0x4f0c18
call fcn.00432ae0
or esi, 0x80
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x14], 7
mov eax, dword [edi + 0x10]
jbe 0x437b4b
mov edi, dword [edi]
push eax
mov edx, edi
lea ecx, [ebp - 0x120]
call fcn.0043d440
lea eax, [ebp - 0x120]
push eax
call fcn.0043a570
and esi, 0xffffff7f
add esp, 8
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x130]
call fcn.00432be0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x50]
call fcn.00416c70
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416820
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.0047b4e2
mov esp, ebp
pop ebp
ret 4
call fcn.00403950
int3