Function at 0x401c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x63c00c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x14], eax
test edi, edi
je 0x401c62
cmp word [edi], 0
mov esi, edi
je 0x401c5c
add esi, 2
cmp word [esi], 0
jne 0x401c53
sub esi, edi
sar esi, 1
jmp 0x401c66
xor edi, edi
xor esi, esi
sub esp, 8
mov ecx, str.res:
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00402170
add esp, 8
test eax, eax
js 0x401d73
lea esi, [edi + 8]
mov edi, dword [0x63c930]
test esi, esi
je 0x401e7e
cmp word [esi], 0
je 0x401e7e
push 4
push 0x46be84
push esi
call fcn.004537c0
add esp, 0xc
test eax, eax
jne 0x401cb7
add esi, 8
push 2
push 0x46be90
push esi
call fcn.004537c0
add esp, 0xc
test eax, eax
jne 0x401cce
add esi, 4
push 0x104
push esi
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.004538c5
lea eax, [esp + 0x28]
push 0x2e
push eax
call fcn.0044f2bd
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401d29
xor eax, eax
mov word [esi], ax
add esi, 2
je 0x401d29
push 0x46be98
push esi
call fcn.00452963
add esp, 8
test eax, eax
je 0x401d29
push 0x46bea4
push esi
call fcn.00452963
add esp, 8
test eax, eax
je 0x401d29
push esi
jmp 0x401d2b
push 0x17
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401e7e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e7e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x401e7e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
jmp 0x401e46
sub esp, 8
mov ecx, str.this:__app_
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], esi
call fcn.00402170
add esp, 8
test eax, eax
js 0x401e65
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x642fe4]
cmp eax, dword [ecx + 4]
jle 0x401dd4
push 0x642fe4
call fcn.0044dc31
add esp, 4
cmp dword [0x642fe4], 0xffffffff
jne 0x401dd4
push 0x642fe4
mov dword [0x642fcc], 0
call fcn.0044dbe7
add esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
add edi, 0x16
je 0x401e02
cmp word [edi], 0
mov ecx, edi
je 0x401dfa
add ecx, 2
cmp word [ecx], 0
jne 0x401df1
sub ecx, edi
mov edx, edi
sar ecx, 1
jmp 0x401e06
xor edx, edx
xor ecx, ecx
sub esp, 8
mov eax, esp
mov dword [eax + 4], ecx
mov ecx, 0x46be7c
mov dword [eax], edx
call fcn.00402170
add esp, 8
test eax, eax
js 0x401e24
add edi, 4
call fcn.004016b0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x280]
push ecx
push edi
push dword [0x642fcc]
call eax
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x401e7e
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
call fcn.004016b0
push ebx
push dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push esi
push edi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x224]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret 4