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

Disassembly:
push 0xffffffffffffffff
push 0x4ccae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
mov ebx, ecx
push edi
mov eax, ebx
mov esi, edx
mov byte [esp + 0x17], 0
call fcn.0040dd50
test al, al
je 0x43ff4a
push 0x10
xor edi, edi
push edi
push ebx
call fcn.004bbb06
add esp, 0xc
jmp 0x43ff55
push ebx
call fcn.004bb6b6
add esp, 4
xor edi, edi
cmp eax, 1
sete al
cmp byte [ebp], 0
jne 0x43ffc3
cmp byte [esi], 0
jne 0x43ffc3
cmp byte [0x4f3d50], 0
je 0x43ffb0
mov eax, dword [0x4f3d64]
cmp eax, edi
je 0x43ff98
mov ecx, dword [0x4f3d60]
push ecx
push edi
push eax
call fcn.004c16a0
mov edx, dword [0x4f3d64]
add esp, 0xc
push edx
call fcn.004ba14c
add esp, 4
mov dword [0x4f3d64], edi
mov dword [0x4f3d60], edi
mov dword [0x4f3d68], edi
mov dword [0x4f3d6c], edi
mov eax, dword [esp + 0x158]
push edi
push eax
call fcn.0042d120
jmp 0x440257
xor ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x150], edi
test al, al
jne 0x43ffe9
call fcn.004516c0
test al, al
jne 0x44021e
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x44020b
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440010
sub eax, edx
cmp eax, 0x104
jb 0x440025
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x40]
push ebp
push ecx
call fcn.004c3030
lea edx, [esp + 0x48]
add esp, 0xc
push edx
call fcn.004bca8c
xor eax, eax
add esp, 4
cmp byte [0x4f3d50], al
je 0x440068
mov eax, dword [0x4f3d58]
push eax
lea eax, [esp + 0x24]
call fcn.00413c90
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004bca8c
add esp, 4
mov esi, dword [0x4f3d64]
xor ebp, ebp
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x440083
mov ebx, dword [0x4f3d6c]
jmp 0x44015c
cmp eax, edi
jne 0x44008b
lea eax, [esp + 0x3c]
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x44020b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x44020b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, edi
je 0x44020b
push ebx
push edi
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp byte [0x4f3d51], 0
mov ebx, eax
je 0x4400e0
mov byte [0x4f3d52], 1
cmp byte [0x4f3d50], 0
je 0x4401e1
cmp byte [0x4f3d52], 0
je 0x44015c
mov edi, ebx
mov esi, 0x4f3d60
mov dword [0x4f3d6c], ebx
call fcn.00413990
test eax, eax
je 0x440209
xor edi, edi
mov ecx, ebx
mov edx, ebp
call fcn.00413ac0
cmp byte [0x4f3d51], 0
mov esi, eax
je 0x44015a
cmp ebx, 0x1e
jb 0x440209
mov eax, dword [esi]
cmp eax, 0x4034b50
je 0x440143
cmp eax, 0xfbfcb4af
jne 0x440209
push 0x4f3d60
xor ecx, ecx
call fcn.00477f40
add esp, 4
test al, al
je 0x440209
xor edi, edi
cmp byte [0x4f3d50], 0
je 0x4401e1
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
push edi
push edi
lea edx, [esp + 0x44]
push edx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push ecx
mov edx, esi
mov byte [esp + 0x168], 1
call fcn.00477a50
add esp, 0x18
cmp eax, edi
je 0x4401ac
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 0
call fcn.004138f0
jmp 0x44020b
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 + 0x150], 0
call fcn.004138f0
jmp 0x44020b
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 0x44020b
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x44021a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x24]
cmp byte [esp + 0x17], 0
mov edx, dword [esp + 0x158]
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042d120
mov esi, eax
cmp ebx, edi
je 0x440255
mov eax, dword [esp + 0x20]
push eax
push edi
push ebx
call fcn.004c16a0
add esp, 0xc
push ebx
call fcn.004ba14c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x144
ret 8