Function at 0x40a120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4388eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov al, byte [0x449ef4]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test al, 1
mov dword [esp + 0x1c], ebp
mov esi, 0x43b340
jne 0x40a199
mov cl, al
push ebp
or cl, 1
push ebp
mov byte [0x449ef4], cl
mov ecx, 0x449eb0
call fcn.004050e0
push ebp
push ebp
mov ecx, 0x449ec0
mov dword [esp + 0x90], 1
call fcn.00404ec0
push 0x40a6a0
mov dword [0x449eb0], esi
mov byte [esp + 0x8c], 0
call fcn.0041c3d5
add esp, 4
mov al, byte [0x449ef4]
test al, 2
jne 0x40a1f5
mov cl, al
push ebp
or cl, 2
push ebp
mov byte [0x449ef4], cl
mov ecx, 0x449f10
call fcn.0040c1b0
push ebp
push ebp
mov ecx, 0x449f10
mov dword [esp + 0x90], 2
mov dword [0x449f10], 0x43b358
mov dword [0x449f1c], ebp
call fcn.0042a870
push 0x40a690
mov byte [esp + 0x8c], 0
call fcn.0041c3d5
add esp, 4
mov edx, dword [0x449f18]
cmp edx, ebp
jne 0x40a441
push ebp
push ebp
lea ecx, [esp + 0x68]
call fcn.004050e0
push ebp
push ebp
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 3
call fcn.00404ec0
mov dword [esp + 0x60], esi
push 0xffffffffffffffff
push str.message
lea ecx, [esp + 0x28]
mov dword [esp + 0x90], 4
call fcn.00401b80
mov dword [esp + 0x20], 0x43b30c
mov esi, dword [0x449fb4]
mov bl, 5
push 0x449ea8
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], bl
call fcn.00409950
lea eax, [esp + 0x40]
lea ecx, [esp + 0x60]
push eax
push 1
push ebp
push ecx
lea edx, [esp + 0x30]
push 0x412ff0
lea eax, [esp + 0x64]
push edx
push eax
mov ecx, esi
mov byte [esp + 0xa4], 6
call fcn.00410590
lea ecx, [esp + 0x50]
call fcn.00401b50
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], bl
call fcn.00401b50
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 4
call fcn.00401b50
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jle 0x40a3f6
mov bl, 7
mov ebp, 0x43b2dc
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
push ecx
lea ecx, [esp + 0x74]
call dword [edx + 4]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
push 0x3d
mov edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x78]
add edi, eax
push edi
call fcn.0041d670
mov esi, eax
add esp, 8
test esi, esi
je 0x40a3df
mov byte [esi], 0
push edi
inc esi
call fcn.0041d917
add esp, 4
test eax, eax
jle 0x40a3df
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, 0x449f10
mov dword [esp + 0x20], eax
call fcn.0042a870
mov eax, dword [0x449eb8]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, 0x449f10
mov dword [esp + 0x20], eax
call fcn.0042a870
lea edx, [esp + 0x50]
push esi
push edx
call fcn.0040a6b0
add esp, 8
mov esi, eax
mov ecx, dword [esi + 8]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x8c], bl
call dword [eax + 4]
mov edx, dword [0x449ec8]
mov esi, dword [esi + 4]
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, 0x449eb0
mov dword [esp + 0x20], edx
call fcn.0042a870
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x28]
call fcn.004050a0
push eax
mov ecx, 0x449ec0
mov byte [esp + 0x8c], 8
call fcn.00404f80
lea ecx, [esp + 0x13]
push 1
push ecx
mov ecx, 0x449ec0
mov byte [esp + 0x90], bl
mov dword [esp + 0x28], ebp
mov byte [esp + 0x1b], 0
call fcn.004019a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], 4
call fcn.00401b50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40a2d4
xor ebp, ebp
mov edx, dword [0x449f18]
push 1
push edx
mov ecx, 0x449f10
xor esi, esi
call fcn.0041a0f0
mov dword [eax], esi
mov eax, dword [0x449f18]
push 1
push eax
mov ecx, 0x449f10
call fcn.0041a0f0
lea ecx, [esp + 0x70]
mov dword [eax], esi
mov byte [esp + 0x88], 0
call fcn.00401b50
lea ecx, [esp + 0x60]
call fcn.00401cf0
mov edx, dword [0x449f18]
mov edi, dword [esp + 0x94]
cmp edx, 1
jle 0x40a47a
mov eax, dword [0x449f14]
mov ebx, dword [0x449eb8]
mov ecx, 1
cmp dword [eax], edi
jne 0x40a470
mov esi, dword [eax + 4]
cmp esi, ebp
jl 0x40a470
cmp esi, ebx
jl 0x40a58b
add ecx, 2
add eax, 8
cmp ecx, edx
jl 0x40a45d
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x38]
call fcn.00401b80
mov dword [esp + 0x30], 0x43b30c
push ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x8c], 9
call dword [0x43b310]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, edi
shr eax, 4
inc eax
push 6
and eax, 0xffff
and edi, 0xf
push eax
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
je 0x40a547
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
shr ebp, 1
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00401700
xor esi, esi
mov byte [esp + 0x88], 0xa
test ebx, ebx
jle 0x40a519
push 0
push esi
lea ecx, [esp + 0x28]
call fcn.0040bbd0
and eax, 0xffff
dec ebx
lea esi, [esi + eax + 1]
jne 0x40a501
mov eax, esi
push 0
push eax
lea ecx, [esp + 0x28]
inc esi
call fcn.0040bbd0
mov ecx, dword [esp + 0x24]
and eax, 0xffff
push eax
lea edx, [ecx + esi*2]
lea ecx, [esp + 0x34]
push edx
call fcn.00405a10
mov byte [esp + 0x88], 9
mov esi, dword [esp + 0x90]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0040a5d0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x88], 0
call fcn.00401b50
mov ecx, dword [esp + 0x80]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov ecx, dword [0x449ec8]
mov edx, dword [0x449ec0]
push ecx
mov ecx, 0x449ec0
call dword [edx + 4]
mov eax, dword [0x449eb4]
push 0xffffffffffffffff
mov eax, dword [eax + esi*4]
mov esi, dword [0x449ec4]
add eax, esi
mov esi, dword [esp + 0x94]
push eax
mov ecx, esi
call fcn.00401b80
mov dword [esi], 0x43b30c
jmp 0x40a573