Function at 0x402870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410420
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x419004]
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 0x4028bb
xor al, al
jmp 0x402de7
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4028b4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x88], esi
test esi, esi
je 0x4028b4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [ebp - 0x84], ecx
test ecx, ecx
je 0x4028b4
movzx edx, byte [ecx + esi - 1]
lea ecx, [ebp - 0x48]
sub eax, edx
mov dword [ebp - 0x38], 0
dec eax
mov dword [ebp - 0x34], 0xf
push edx
add eax, esi
mov byte [ebp - 0x48], 0
push eax
mov dword [ebp - 0x80], edx
call fcn.004034e0
push 0x41a5b8
push 0x403df0
push 0x41a5ac
mov dword [ebp - 4], 1
call fcn.00403fa7
add esp, 0xc
test eax, eax
je 0x402e03
push 0x41a5b8
push 0x403df0
push 0x41a5ac
mov byte [ebp - 4], 2
call fcn.00403fa7
add esp, 0xc
test eax, eax
je 0x402e08
push ecx
xor eax, eax
mov dword [ebp - 0x6c], 0
push 0x105
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x64], 2
call fcn.00402e70
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push eax
call fcn.00403efc
push ecx
push eax
lea ecx, [ebp - 0x7c]
mov esi, edx
call fcn.00402e70
cmp esi, 0xffffffff
jne 0x4029dc
push 0x41a5b0
push 0x403dd0
push 0x41a5a8
call fcn.00403fa7
add esp, 0xc
test eax, eax
je 0x402e0d
mov esi, 0x14
mov dword [ebp - 0x14], 0x41a5b0
jmp 0x402a02
push 0x41a5b8
push 0x403df0
push 0x41a5ac
call fcn.00403fa7
add esp, 0xc
test eax, eax
je 0x402e12
mov dword [ebp - 0x14], 0x41a5b8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x64], 1
test esi, esi
jne 0x402e17
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.00401920
cmp eax, esi
je 0x402a75
nop dword [eax]
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x402a4d
cmp ecx, 0x2f
jne 0x402a56
add eax, 2
cmp eax, esi
jne 0x402a40
jmp 0x402a75
cmp eax, esi
je 0x402a75
nop word [eax + eax]
movzx ecx, word [esi - 2]
cmp ecx, 0x5c
je 0x402a75
cmp ecx, 0x2f
je 0x402a75
add esi, 0xfffffffe
cmp eax, esi
jne 0x402a60
sub esi, edi
sar esi, 1
cmp ebx, esi
jb 0x402e23
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.004036a0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x402ae4
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402ada
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e28
push edx
push ecx
call fcn.00404703
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 0x402b2e
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x402b2a
cmp ecx, edx
je 0x402b2e
dec ecx
cmp byte [ecx], 0x5c
jne 0x402b20
sub ecx, edx
jmp 0x402b31
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 0x402e2d
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.004034e0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x30]
call fcn.004031c0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x402baf
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ba5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e32
push edx
push ecx
call fcn.00404703
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.00402f00
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 0x402c26
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.00405ea0
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x402c36
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x14]
push edi
call fcn.00403be0
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 0x402c79
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.00405ea0
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x402c89
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x14]
push edi
call fcn.00403be0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.004031c0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x402ccd
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402cc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e37
push edx
push ecx
call fcn.00404703
add esp, 8
mov edi, dword [ebp - 0x88]
sub edi, dword [ebp - 0x80]
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]
sub esp, 0x18
mov ebx, eax
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00403280
mov ecx, dword [ebp - 0x84]
mov edx, ebx
push edi
call fcn.004022a0
add esp, 4
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00403280
call fcn.00402460
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x18
xor esi, esi
nop word [eax + eax]
mov ecx, ebx
call fcn.00402630
test eax, eax
je 0x402d68
push 0x3e8
call edi
inc esi
cmp esi, 0xa
jl 0x402d50
push 0x3e8
call edi
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x402da3
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e3c
push edx
push ecx
call fcn.00404703
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 0x402de5
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402ddb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e41
push edx
push ecx
call fcn.00404703
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.004046c2
mov esp, ebp
pop ebp
ret
call fcn.00407c6e
call fcn.00407c6e
call fcn.00407c6e
call fcn.00407c6e
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x18]
call fcn.00402230
call fcn.00403620
call fcn.00407eb5
call fcn.00403620
call fcn.00407eb5
call fcn.00407eb5
call fcn.00407eb5
call fcn.00407eb5
int3