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

Disassembly:
push 0xffffffffffffffff
push 0x4dc836
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push ebp
mov ebp, dword [esp + 0x254]
push esi
mov ebx, ecx
push edi
mov eax, ebx
mov esi, edx
mov byte [esp + 0x17], 0
call fcn.0040e320
test al, al
je 0x44129a
push 0x10
xor edi, edi
push edi
push ebx
call fcn.004cb270
add esp, 0xc
jmp 0x4412a5
push ebx
call fcn.004cae86
add esp, 4
xor edi, edi
cmp eax, 1
sete al
cmp word [ebp], di
jne 0x441313
cmp word [esi], di
jne 0x441313
cmp byte [0x51e640], 0
je 0x441300
mov eax, dword [0x51e654]
cmp eax, edi
je 0x4412e8
mov ecx, dword [0x51e650]
push ecx
push edi
push eax
call fcn.004d2f90
mov edx, dword [0x51e654]
add esp, 0xc
push edx
call fcn.004ca991
add esp, 4
mov dword [0x51e654], edi
mov dword [0x51e650], edi
mov dword [0x51e658], edi
mov dword [0x51e65c], edi
mov eax, dword [esp + 0x258]
push edi
push eax
call fcn.0042db70
jmp 0x4415b2
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x250], edi
test al, al
jne 0x441339
call fcn.004534c0
test al, al
jne 0x441579
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x441566
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x441360
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x44137b
mov eax, 0x103
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x40]
push ebp
push edx
call fcn.004d23c0
lea eax, [esp + 0x48]
add esp, 0xc
push eax
call fcn.004cbe39
xor eax, eax
add esp, 4
cmp byte [0x51e640], al
je 0x4413c3
mov ebx, dword [0x51e648]
lea eax, [esp + 0x20]
call fcn.00414350
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004cbe39
add esp, 4
xor edi, edi
mov esi, dword [0x51e654]
xor ebp, ebp
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x4413de
mov ebx, dword [0x51e65c]
jmp 0x4414b7
cmp eax, edi
jne 0x4413e6
lea eax, [esp + 0x3c]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x441566
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x441566
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, edi
je 0x441566
push ebx
push edi
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp byte [0x51e641], 0
mov ebx, eax
je 0x44143b
mov byte [0x51e642], 1
cmp byte [0x51e640], 0
je 0x44153c
cmp byte [0x51e642], 0
je 0x4414b7
mov edi, ebx
mov esi, 0x51e650
mov dword [0x51e65c], ebx
call fcn.00414050
test eax, eax
je 0x441564
xor edi, edi
mov ecx, ebx
mov edx, ebp
call fcn.00414180
cmp byte [0x51e641], 0
mov esi, eax
je 0x4414b5
cmp ebx, 0x1e
jb 0x441564
mov eax, dword [esi]
cmp eax, 0x4034b50
je 0x44149e
cmp eax, 0xfbfcb4af
jne 0x441564
push 0
push 0x51e650
call fcn.0047e300
add esp, 8
test al, al
je 0x441564
xor edi, edi
cmp byte [0x51e640], 0
je 0x44153c
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
push edi
lea edx, [esp + 0x40]
push edx
push ebx
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
xor ecx, ecx
mov byte [esp + 0x268], 1
call fcn.0047dd70
add esp, 0x18
cmp eax, edi
je 0x441507
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.00413fb0
jmp 0x441566
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push edi
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
lea ecx, [esp + 0x2c]
setne byte [esp + 0x17]
mov byte [esp + 0x250], 0
call fcn.00413fb0
jmp 0x441566
mov ecx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x3c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x24]
push eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne byte [esp + 0x17]
jmp 0x441566
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x441575
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x17], 0
mov edx, dword [esp + 0x258]
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042db70
mov esi, eax
cmp ebx, edi
je 0x4415b0
mov eax, dword [esp + 0x20]
push eax
push edi
push ebx
call fcn.004d2f90
add esp, 0xc
push ebx
call fcn.004ca991
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x244
ret 8