Function at 0x409dc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443531
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4567a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
call fcn.00413b0f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409e21
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
push 0x44a3e8
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00401e70
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
push 0x17
push ecx
call fcn.00429948
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, ax
add esp, 4
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x409f03
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409f03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp - 0x22c], eax
je 0x409f03
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.00413b0f
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00405fb0
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.00401c70
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409f03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401c70
mov edi, dword [ebp - 0x230]
call fcn.0040bbe0
test eax, eax
je 0x40a42b
push 0x206
lea edx, [ebp - 0x222]
push 0
push edx
mov word [ebp - 0x224], 0
call fcn.0042af00
mov edi, dword [ebp + 0xc]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x409f5f
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401b80
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
push esi
mov edx, edi
xor ecx, ecx
call fcn.0040bc70
test edi, edi
jne 0x409f75
xor eax, eax
jmp 0x409f95
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409f80
sub eax, edx
sar eax, 1
js 0x40a421
cmp eax, dword [edi - 8]
jg 0x40a421
mov ebx, dword [ebp - 0x228]
mov dword [edi - 0xc], eax
push 0x104
lea ecx, [ebp - 0x224]
mov word [edi + eax*2], 0
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
push eax
call fcn.0040f601
test eax, eax
mov dword [ebp - 0x228], eax
jne 0x40a068
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a02d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a050
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x40a4ae
test eax, eax
je 0x40a42b
mov ecx, dword [ebp - 0x228]
call fcn.00413fd5
mov edi, dword [ebp + 0xc]
cmp dword [edi - 4], 1
mov ebx, eax
jle 0x40a08d
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00401b80
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
push esi
mov edx, edi
mov ecx, ebx
call fcn.0040bc70
test edi, edi
jne 0x40a0a3
xor eax, eax
jmp 0x40a0c5
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a0b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a0b0
sub eax, edx
sar eax, 1
js 0x40a421
cmp eax, dword [edi - 8]
jg 0x40a421
push 0x208
lea edx, [ebp - 0x224]
push 0
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], 0
call fcn.0042af00
mov edi, dword [ebp - 0x228]
mov ecx, dword [edi + 0x20]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push 1
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00413ff0
mov ecx, str.Button
lea eax, [ebp - 0x224]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a156
test dx, dx
je 0x40a152
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a156
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a130
xor eax, eax
jmp 0x40a15b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a2ae
push eax
push 0x457c8c
push 0x457a6c
push eax
mov eax, dword [ebp - 0x228]
push eax
call fcn.0042a473
mov ecx, dword [ebp - 0x228]
add esp, 0x14
push 0
push 0x457c28
push 0x457a6c
push 0
push ecx
mov ebx, eax
call fcn.0042a473
add esp, 0x14
test ebx, ebx
mov edi, eax
je 0x40a1c7
lea edx, [esi + 0x18]
push edx
mov eax, ebx
call fcn.0040a830
mov eax, dword [esi + 0x74]
push 1
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40a3fe
test edi, edi
je 0x40a3fe
lea ecx, [esi + 0x18]
push ecx
call fcn.004085b0
mov edx, dword [edi + 0x20]
mov eax, dword [esi + 0x78]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push edx
mov dword [edi + 0xa4], eax
call ebx
mov eax, dword [esi + 0x78]
push 1
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0x20]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x74]
push 1
push 0
push ecx
mov dword [edi + 0xa8], eax
call ebx
mov edx, dword [edi + 0x20]
mov eax, dword [esi + 0x74]
push 1
push 0
push edx
mov dword [edi + 0xb0], eax
call ebx
mov eax, dword [esi + 0x78]
push 1
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0x20]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x74]
push 1
push 0
push ecx
mov dword [edi + 0xb8], eax
call ebx
lea eax, [esi + 0x7c]
lea ebx, [esi + 0x88]
push eax
mov ecx, ebx
call fcn.00401c70
lea edx, [esi + 0x80]
lea ecx, [ebx + 4]
push edx
call fcn.00401c70
mov ebx, dword [ebx]
cmp dword [ebx - 8], 0
jle 0x40a3fe
push ebx
call fcn.00429948
add esp, 4
push eax
call fcn.00405a80
mov ebx, eax
mov eax, dword [esi + 0x8c]
push eax
call fcn.00429948
add esp, 4
push eax
call fcn.00405a80
mov ecx, edi
call fcn.00408000
jmp 0x40a3fe
mov ecx, str.Static
lea eax, [ebp - 0x224]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a2e6
test dx, dx
je 0x40a2e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a2e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a2c0
xor eax, eax
jmp 0x40a2eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a3fe
mov edi, dword [ebp - 0x228]
push eax
push 0x457ca8
push 0x457a6c
push eax
push edi
call fcn.0042a473
add esp, 0x14
push 0
push 0x457c8c
push 0x457a6c
push 0
push edi
mov dword [ebp - 0x22c], eax
call fcn.0042a473
add esp, 0x14
lea ebx, [esi + 0x7c]
lea ecx, [esi + 0x88]
push ebx
mov edi, eax
call fcn.00401c70
add ebx, 4
lea ecx, [esi + 0x8c]
push ebx
call fcn.00401c70
test edi, edi
je 0x40a3c7
lea eax, [esi + 0x18]
push eax
mov eax, edi
call fcn.0040a830
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x74]
push 1
push 0
push ecx
mov dword [edi + 0x74], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x78]
lea ebx, [edi + 0x60]
mov ecx, ebx
mov dword [edi + 0x68], eax
call fcn.00413708
mov eax, dword [edi + 0x68]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, ebx
call fcn.004136b5
mov edx, dword [edi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x88]
cmp dword [eax - 0xc], 0
je 0x40a3fe
push eax
call fcn.00429948
add esp, 4
push eax
call fcn.00405a80
push eax
mov eax, dword [edi + 0x20]
push 0
push 0x172
push eax
jmp 0x40a3f8
mov edi, dword [ebp - 0x22c]
test edi, edi
je 0x40a3fe
mov eax, dword [esi + 0x88]
cmp dword [eax - 0xc], 0
je 0x40a3fe
push eax
call fcn.00429948
add esp, 4
push eax
call fcn.00405a80
mov ecx, dword [edi + 0x20]
push eax
push 0
push 0x172
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
push eax
call fcn.0040f601
mov dword [ebp - 0x228], eax
jmp 0x40a060
push 0x80070057
call fcn.00401ab0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a451
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00429384
mov esp, ebp
pop ebp
ret 0xc