Function at 0x409880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c53c
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1cc], ecx
call fcn.00405200
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x150]
call fcn.00401880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.00403150
push 0
lea ecx, [ebp - 0x168]
call fcn.00423230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c2b0
mov byte [ebp - 4], 3
cmp dword [ebp + 8], 0
jl 0x409911
cmp dword [ebp + 8], 0x6d
jl 0x409965
mov eax, 0x15
mov word [ebp - 0x1ae], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1ae]
jmp 0x409e81
lea ecx, [ebp - 0x1b4]
push ecx
mov edx, dword [ebp - 0x1cc]
mov ecx, dword [edx + 0x4c8]
call fcn.0040cc40
mov dword [ebp - 0x1d0], eax
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1d4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1d4]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00403530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b4]
call fcn.004018a0
mov edx, dword [ebp - 0x1cc]
mov ecx, dword [edx + 0x4c8]
call fcn.0040cbe0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, 0x200
movzx ecx, ax
mov dword [ebp - 0x19c], ecx
push str.CARGO
mov edx, dword [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jne 0x409a55
mov ecx, 0x29
mov word [ebp - 0x1b6], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1b6]
jmp 0x409e81
mov edx, dword [ebp - 0x1a4]
push edx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
jne 0x409acc
mov ecx, 0x2a
mov word [ebp - 0x1b8], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1b8]
jmp 0x409e81
mov edx, dword [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jne 0x409b49
mov eax, dword [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, 0x2b
mov word [ebp - 0x1ba], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1ba]
jmp 0x409e81
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [eax + edx*4 + 0x310]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
lea ecx, [ebp - 0x168]
call fcn.00423320
mov eax, dword [ebp - 0x1ac]
push eax
call fcn.0040be50
mov ecx, dword [ebp - 0x1ac]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [ebp - 0x168]
call fcn.00423100
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1cc]
cmp eax, dword [ecx + edx*4 + 0x310]
je 0x409bf6
mov edx, 0x2b
mov word [ebp - 0x1bc], dx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1bc]
jmp 0x409e81
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x194]
call fcn.0041c880
test eax, eax
jne 0x409c60
mov ecx, 0x31
mov word [ebp - 0x1be], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1be]
jmp 0x409e81
push 0
lea ecx, [ebp - 0x194]
call fcn.0041c440
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
jne 0x409cd0
mov edx, 0x31
mov word [ebp - 0x1c0], dx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1c0]
jmp 0x409e81
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1cc]
lea ecx, [ecx + eax*4 + 0x15c]
call fcn.00401920
push eax
lea ecx, [ebp - 0x150]
call fcn.00401920
push eax
lea edx, [ebp - 0x1c4]
push edx
call fcn.00421c90
add esp, 0xc
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1dc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00403530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c4]
call fcn.004018a0
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
call fcn.0042dc24
mov dword [ebp - 0x14c], eax
push 0
movzx eax, byte [0x454459]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1cc]
lea ecx, [edx + ecx*4 + 0x15c]
call fcn.0040be60
test eax, eax
jl 0x409d8d
cmp dword [ebp - 0x14], 0
je 0x409d8d
xor eax, eax
cmp dword [ebp - 0x14c], 0
sete al
mov dword [ebp - 0x198], eax
jmp 0x409d97
mov dword [ebp - 0x198], 1
cmp dword [ebp - 0x198], 0
je 0x409e35
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
push 2
mov ecx, dword [ebp - 0x1cc]
call fcn.00409160
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
mov ecx, dword [ebp - 0x1a0]
call fcn.00423580
test eax, eax
jne 0x409e35
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
call fcn.0042e2ae
mov ecx, 0x32
mov word [ebp - 0x1c6], cx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1c6]
jmp 0x409e81
xor edx, edx
mov word [ebp - 0x1c8], dx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x194]
call fcn.0041c330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x168]
call fcn.004232b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.004018a0
mov ax, word [ebp - 0x1c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret 4