Function at 0x411b46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push HDIB2Bmp
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x84], ecx
call fcn.00416810
mov dword [ebp - 0x14], eax
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x411ba2
mov dword [ebp - 0x14], 0
push 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x411baf
xor eax, eax
jmp 0x412035
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x411bcd
xor eax, eax
jmp 0x412035
mov eax, dword [ebp - 0x84]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x84]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x84]
call fcn.00416ec0
test eax, eax
jne 0x411bf4
xor eax, eax
jmp 0x412035
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
xor edx, edx
mov dx, word [ecx + 2]
mov eax, dword [ebp - 0x60]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x64], 0
mov word [ebp - 0x10], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x58]
call fcn.004168c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00417600
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x58]
call fcn.004172f0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00417690
push 2
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004fa250
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 2
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
and eax, 0x10
test eax, eax
jne 0x411cb0
push 2
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.004fa250
add esp, 0xc
mov eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x5c], eax
jmp 0x411cb6
mov word [ebp - 0x10], 0
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x80
test edx, edx
je 0x411cda
mov eax, dword [ebp - 0x1c]
sub eax, 0x80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004faf84
add esp, 4
lea edx, [eax + eax + 2]
push edx
call fcn.005142b0
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.004faf5f
add esp, 8
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004faf84
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
and eax, 0x10
test eax, eax
je 0x411e26
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x411d62
push 1
lea ecx, [ebp - 0x58]
call fcn.00416320
push eax
lea ecx, [ebp - 0x3c]
call fcn.00417670
push 0x5c
call fcn.00401690
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x78], 0
je 0x411d86
mov ecx, dword [ebp - 0x78]
call fcn.0040ce88
mov dword [ebp - 0x88], eax
jmp 0x411d90
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x48], 1
mov ecx, dword [ebp - 0x68]
call fcn.00416ee0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x58]
call fcn.00416320
push eax
lea ecx, [ebp - 0x58]
call fcn.00417330
mov ecx, dword [eax]
call fcn.0040ff17
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
call fcn.004172f0
push 0
lea ecx, [ebp - 0x3c]
call fcn.00417690
jmp 0x411ed8
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x58]
call fcn.00416320
push eax
lea ecx, [ebp - 0x58]
call fcn.00417330
mov ecx, dword [eax]
call fcn.0040ff17
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x411e78
push 1
lea ecx, [ebp - 0x58]
call fcn.00416320
push eax
lea ecx, [ebp - 0x3c]
call fcn.00417670
lea ecx, [ebp - 0x58]
call fcn.00416320
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x411ed8
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00417650
test eax, eax
je 0x411ed8
lea ecx, [ebp - 0x58]
call fcn.00416320
push eax
lea ecx, [ebp - 0x58]
call fcn.00417330
mov ecx, dword [eax]
call fcn.00412322
push 1
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
call fcn.0050f624
push 1
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004176c0
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
jmp 0x411e83
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.005142d9
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00416320
cmp eax, 0xffffffff
jne 0x411c69
mov dword [ebp - 0x20], 0
jmp 0x411f0d
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x84]
call fcn.00417000
cmp dword [ebp - 0x20], eax
jge 0x412003
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.00417310
mov ecx, dword [eax]
call fcn.0040cd4a
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00415275
test eax, eax
je 0x411fa2
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.00417310
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x410
lea ecx, [ebp - 0x6c]
call fcn.00409600
push eax
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00415275
mov eax, dword [eax + 4]
push eax
push 0x410
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.00417150
jmp 0x411ff2
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.00417310
mov eax, dword [eax]
mov dword [eax + 0x14], 0x400
lea ecx, [ebp - 0x6c]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.00417310
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
push eax
push 0x400
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.00417150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.00513ced
jmp 0x411f04
mov edx, dword [ebp - 0x84]
mov dword [edx + 0x58], 1
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00417740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00416300
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4