Function at 0x403170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4230c0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x434064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xa
push 0x65
push 0
mov dword [ebp - 0x64], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4031bb
xor al, al
jmp 0x4036ec
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4031b4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x80], ebx
test ebx, ebx
je 0x4031b4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [ebp - 0x88], ecx
test ecx, ecx
je 0x4031b4
movzx edx, byte [ecx + ebx - 1]
lea ecx, [ebp - 0x48]
sub eax, edx
mov dword [ebp - 0x38], 0
dec eax
mov dword [ebp - 0x34], 0xf
push edx
add eax, ebx
mov byte [ebp - 0x48], 0
push eax
mov dword [ebp - 0x84], edx
call fcn.00404ad0
push 0x435ec0
push 0x406ee0
push 0x435ea0
mov dword [ebp - 4], 1
call fcn.0040713b
add esp, 0xc
test eax, eax
je 0x403708
push 0x435ec0
push 0x406ee0
push 0x435ea0
mov byte [ebp - 4], 2
call fcn.0040713b
add esp, 0xc
test eax, eax
je 0x40370d
xor eax, eax
mov dword [ebp - 0x6c], 0
push eax
push 0x105
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x64], 2
call fcn.00403790
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
call fcn.00406fec
push 0
push eax
lea ecx, [ebp - 0x7c]
mov esi, edx
call fcn.00403790
cmp esi, 0xffffffff
jne 0x4032dd
push 0x435ea8
push 0x406ea0
push 0x435e90
call fcn.0040713b
add esp, 0xc
test eax, eax
je 0x403712
mov esi, 0x14
mov dword [ebp - 0x14], 0x435ea8
jmp 0x403303
push 0x435ec0
push 0x406ee0
push 0x435ea0
call fcn.0040713b
add esp, 0xc
test eax, eax
je 0x403717
mov dword [ebp - 0x14], 0x435ec0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x64], 1
test esi, esi
jne 0x40371c
mov byte [ebp - 4], 3
lea edi, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
mov ebx, dword [ebp - 0x6c]
cmovae edi, dword [ebp - 0x7c]
mov ecx, edi
lea esi, [edi + ebx*2]
mov edx, esi
call fcn.00402210
cmp eax, esi
je 0x403375
nop
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40334d
cmp ecx, 0x2f
jne 0x403356
add eax, 2
cmp eax, esi
jne 0x403340
jmp 0x403375
cmp eax, esi
je 0x403375
nop word [eax + eax]
movzx ecx, word [esi - 2]
cmp ecx, 0x5c
je 0x403375
cmp ecx, 0x2f
je 0x403375
add esi, 0xfffffffe
cmp eax, esi
jne 0x403360
sub esi, edi
sar esi, 1
cmp ebx, esi
jb 0x403728
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], esi
cmovae eax, dword [ebp - 0x7c]
xor ecx, ecx
push ecx
mov byte [ebp - 4], 1
mov word [eax + esi*2], cx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00405ce0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x4033e4
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4033da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40372d
push edx
push ecx
call fcn.00409684
add esp, 8
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov ebx, dword [ebp - 0x30]
xor eax, eax
mov esi, dword [ebp - 0x20]
cmp edi, 0x10
mov dword [ebp - 0x6c], 0
cmovae edx, ebx
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
test esi, esi
je 0x40342e
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x40342a
cmp ecx, edx
je 0x40342e
dec ecx
cmp byte [ecx], 0x5c
jne 0x403420
sub ecx, edx
jmp 0x403431
or ecx, 0xffffffff
lea edx, [ecx - 4]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp esi, edx
jb 0x403732
sub esi, edx
lea eax, [ebp - 0x30]
mov ecx, 4
cmp esi, ecx
cmovb ecx, esi
cmp edi, 0x10
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x60]
add eax, edx
push eax
call fcn.00404ad0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403af0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4034af
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4034a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403737
push edx
push ecx
call fcn.00409684
add esp, 8
mov byte [ebp - 4], 6
xor ecx, ecx
mov edi, dword [ebp - 0x38]
mov eax, edi
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], 0
setb cl
mov dword [ebp - 0x4c], 0xf
neg ecx
mov byte [ebp - 0x60], 0
or ecx, eax
mov dword [ebp - 0x64], 0xc4
push ecx
lea ecx, [ebp - 0x60]
call fcn.00403830
cmp dword [ebp - 0x34], 0x10
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov eax, edx
cmovae ecx, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x50]
sub eax, ebx
push edi
push ecx
cmp edi, eax
ja 0x403526
cmp edx, 0x10
lea esi, [ebp - 0x60]
lea eax, [edi + ebx]
cmovae esi, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
lea eax, [esi + ebx]
push eax
call fcn.0040b0a0
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x403536
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x14]
push edi
call fcn.00406740
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
mov eax, edx
cmovae ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x50]
sub eax, ebx
push edi
push ecx
cmp edi, eax
ja 0x403579
cmp edx, 0x10
lea esi, [ebp - 0x60]
lea eax, [ebx + edi]
cmovae esi, dword [ebp - 0x60]
mov dword [ebp - 0x50], eax
lea eax, [esi + ebx]
push eax
call fcn.0040b0a0
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x403589
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x14]
push edi
call fcn.00406740
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00403af0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x4035cd
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4035c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40373c
push edx
push ecx
call fcn.00409684
add esp, 8
mov edi, dword [ebp - 0x80]
sub edi, dword [ebp - 0x84]
push 0
push 0
push 0x40000
dec edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0xa
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp - 0x80]
mov ebx, eax
or eax, 0xffffffff
sub esp, 0x18
sub eax, dword [ebp - 0x38]
mov ecx, esp
add esi, eax
lea eax, [ebp - 0x48]
push eax
call fcn.00403bb0
mov ecx, dword [ebp - 0x88]
mov edx, ebx
push esi
call fcn.00402b90
add esp, 4
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00403bb0
call fcn.00402d50
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
xor esi, esi
mov ecx, ebx
call fcn.00402f20
test eax, eax
je 0x40366d
push 0x3e8
call edi
inc esi
cmp esi, 0xa
jl 0x403655
push 0x3e8
call edi
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4036a8
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40369e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403741
push edx
push ecx
call fcn.00409684
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp edx, 0x10
jb 0x4036ea
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4036e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403746
push edx
push ecx
call fcn.00409684
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.0040963e
mov esp, ebp
pop ebp
ret
call fcn.0040f334
call fcn.0040f334
call fcn.0040f334
call fcn.0040f334
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x18]
call fcn.00402b20
call fcn.004058f0
call fcn.0040f6a6
call fcn.004058f0
call fcn.0040f6a6
call fcn.0040f6a6
call fcn.0040f6a6
call fcn.0040f6a6
int3