Function at 0x449f60
Capabilities:
Extract resource via kernel32 functions
Get common file path
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push edi
push 0x218
push 0
mov byte [esp + 0x1b], 0
call ebp
mov esi, eax
test esi, esi
je 0x449fb4
push 0x114
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esp + 0x6c]
add esp, 0xc
test edi, edi
je 0x449fcb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call ebp
mov dword [esi + 0x48], eax
test eax, eax
jne 0x449fc3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x5c]
mov eax, ecx
and eax, 0x3ffffff7
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esp + 0x34], ecx
sub eax, 1
je 0x44a0ad
sub eax, 1
je 0x44a02b
sub eax, 2
jne 0x44a11d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
mov ebx, eax
call edi
mov edi, dword [esp + 0x50]
lea ecx, [esi + 4]
push 2
push 0
push 0
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44a073
mov dword [esi + 4], edi
jmp 0x44a07c
push 0
push 0x80
push 3
push 0
push 3
push connect
push dword [esp + 0x68]
test ecx, ecx
jns 0x44a04d
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x44a053
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x44a073
push esi
mov edi, 1
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edi, dword [esi + 4]
mov dword [esi], 2
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x44a11d
push esi
mov edi, 0x10
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x50]
mov dword [esi + 4], eax
test eax, eax
je 0x44a0c2
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
jmp 0x44a111
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [esp + 0x54]
mov edi, eax
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44a74d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44a74d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
test eax, eax
je 0x44a735
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi], 1
test byte [esp + 0x34], 8
je 0x44a16b
push 0x2a
lea eax, [esi + 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esi + 0xc]
mov eax, 8
mov word [esi + 0x56], ax
add esp, 0xc
mov eax, dword [esi]
mov dword [esi + 0x76], edx
or eax, 8
mov dword [esi + 0x8a], edx
mov dword [esi + 0x8e], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x44a6d7
test byte [esi], 1
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x1c], eax
jne 0x44a1a6
push 2
lea ecx, [esp + 0x3c]
xorps xmm0, xmm0
push ecx
movlpd qword [esp + 0x40], xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esi + 4]
call eax
mov ecx, dword [esp + 0x38]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
sbb edx, 0
jmp 0x44a1b2
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov ebx, 0xffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
test edx, edx
jg 0x44a1dd
jl 0x44a1d3
cmp ecx, ebx
jae 0x44a1dd
mov ebx, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ebx
push 0x404
push 0
call ebp
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x44a735
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ebp, 4
cmp eax, ecx
jg 0x44a5c6
jl 0x44a211
cmp ebp, ebx
jae 0x44a5c6
add ebp, 0x400
adc eax, 0
mov dword [esp + 0x30], eax
cmp eax, ecx
jl 0x44a230
jg 0x44a228
cmp ebp, ebx
jbe 0x44a230
mov ebp, ebx
mov dword [esp + 0x30], ecx
mov eax, ecx
mov ebx, dword [esp + 0x24]
mov edx, ebx
mov ecx, dword [esp + 0x28]
sub edx, ebp
mov dword [esp + 0x38], edx
sbb ecx, eax
mov dword [esp + 0x34], ecx
test eax, eax
jb 0x44a25b
ja 0x44a254
cmp ebp, 0x404
jbe 0x44a25b
mov ebx, 0x404
jmp 0x44a25d
sub ebx, edx
mov eax, dword [esi]
test al, 1
jne 0x44a292
mov ecx, dword [esi + 0xc]
xor eax, eax
add ecx, edx
lea edx, [esp + 0x40]
push 0
adc eax, dword [esp + 0x38]
push edx
push eax
push ecx
push dword [esi + 4]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
call dword [esp + 0x30]
test eax, eax
je 0x44a5c6
mov eax, dword [esi]
jmp 0x44a298
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov edi, ebx
test al, 1
jne 0x44a2cc
push 0
lea eax, [esp + 0x30]
push eax
push ebx
push dword [esp + 0x20]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a2c6
xor edi, edi
mov dword [esi + 8], 7
mov dword [esp + 0x2c], edi
jmp 0x44a304
mov edi, dword [esp + 0x2c]
jmp 0x44a304
mov ecx, dword [esi + 0x18]
xor eax, eax
mov edx, ebx
add edx, ecx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x44a2ea
mov eax, dword [esi + 0x10]
ja 0x44a2e6
cmp edx, eax
jbe 0x44a2ea
mov edi, eax
sub edi, ecx
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
test edi, edi
mov edi, dword [esp + 0x14]
je 0x44a5c6
lea ecx, [ebx - 3]
test ecx, ecx
js 0x44a341
lea eax, [edi + 3]
add eax, ecx
nop dword [eax]
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x44a33d
cmp byte [edx + edi], 0x4b
jne 0x44a33d
cmp byte [eax - 1], 5
jne 0x44a33d
cmp byte [eax], 6
je 0x44a360
test ecx, ecx
jns 0x44a320
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jg 0x44a5c6
mov ebx, dword [esp + 0x20]
jge 0x44a209
jmp 0x44a211
cmp byte [ecx + edi - 0x14], 0x50
lea ebp, [ecx + edi]
jne 0x44a389
cmp byte [ebp - 0x13], 0x4b
jne 0x44a389
cmp byte [ebp - 0x12], 6
jne 0x44a389
cmp byte [ebp - 0x11], 7
jne 0x44a389
mov ebx, dword [ebp - 0xc]
mov ebp, dword [ebp - 8]
mov byte [esp + 0x13], 1
jmp 0x44a398
mov ebx, dword [esp + 0x38]
mov eax, ecx
mov ebp, dword [esp + 0x34]
cdq
add ebx, eax
adc ebp, edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x44a3c7
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x40]
xor eax, eax
add ecx, ebx
push 0
push edx
adc eax, ebp
mov dword [esp + 0x48], ecx
push eax
push ecx
push dword [esi + 4]
mov dword [esp + 0x58], eax
call dword [esp + 0x30]
jmp 0x44a3cd
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
push esi
call fcn.00447110
add esp, 4
xorps xmm0, xmm0
cmp byte [esp + 0x13], 0
movlpd qword [esp + 0x40], xmm0
push esi
je 0x44a423
call fcn.00447170
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
call fcn.00447110
push esi
call fcn.00447110
push esi
mov dword [esp + 0x44], eax
call fcn.00447110
push esi
mov edi, eax
call fcn.00447170
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], edx
call fcn.00447170
add esp, 0x18
jmp 0x44a465
call fcn.00447240
movzx eax, ax
push esi
mov dword [esp + 0x3c], eax
call fcn.00447240
movzx edi, ax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
push esi
mov dword [esp + 0x38], eax
call fcn.00447240
movzx eax, ax
cdq
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], edx
call fcn.00447240
movzx eax, ax
add esp, 0x10
cdq
cmp dword [esi + 8], 0
jne 0x44a6ac
cmp eax, dword [esi + 0x20]
jne 0x44a5ae
cmp edx, dword [esi + 0x24]
jne 0x44a5ae
test edi, edi
jne 0x44a5ae
cmp dword [esp + 0x34], edi
jne 0x44a5ae
cmp byte [esp + 0x13], 0
push esi
je 0x44a528
lea edi, [esi + 0x40]
call fcn.00447170
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
call fcn.00447170
mov dword [edi], eax
add esp, 8
mov dword [edi + 4], edx
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, 0
adc eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov edx, dword [esp + 0x38]
adc edx, dword [esp + 0x14]
add ecx, dword [esp + 0x30]
adc edx, dword [esp + 0x2c]
add ecx, 0x34
adc edx, 0
test byte [esi], 1
jne 0x44a514
mov eax, dword [esi + 0xc]
add eax, ecx
mov ecx, 0
push 0
adc ecx, edx
mov dword [esp + 0x44], eax
lea edx, [esp + 0x44]
mov dword [esp + 0x48], ecx
push edx
push ecx
push eax
push dword [esi + 4]
call dword [esp + 0x30]
jmp 0x44a54e
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esp + 0x14], eax
jmp 0x44a54e
call fcn.00447110
push esi
mov dword [esp + 0x20], eax
lea edi, [esi + 0x40]
mov dword [esp + 0x1c], 0
call fcn.00447110
mov dword [edi], eax
add esp, 8
mov dword [edi + 4], 0
push esi
call fcn.00447240
add esp, 4
movzx eax, ax
cmp dword [esi + 8], 0
mov dword [esi + 0x28], eax
jne 0x44a6ac
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0xc]
mov edi, edx
mov dword [esp + 0x34], eax
xor eax, eax
add edi, ebx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x18]
adc eax, ebp
mov ebp, dword [esp + 0x34]
add ebp, edi
adc ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x44a6ac
ja 0x44a5a1
cmp dword [esp + 0x38], ebp
jb 0x44a6ac
sub edx, dword [esp + 0x34]
sub edx, edi
add edx, ebx
jmp 0x44a6f1
push esi
mov edi, 8
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x44a5f4
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x40]
push 0
push ecx
push 0
push eax
push dword [esi + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
call dword [esp + 0x30]
jmp 0x44a602
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp dword [esi + 8], 0
jne 0x44a69e
test byte [esi], 1
mov edi, 2
jne 0x44a641
push 0
lea eax, [esp + 0x3c]
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44a63b
mov dword [esi + 8], 7
xor edi, edi
jmp 0x44a684
mov edi, dword [esp + 0x38]
jmp 0x44a684
mov ebx, dword [esi + 0x18]
mov ecx, ebx
mov ebp, dword [esi + 0x1c]
add ecx, edi
mov edx, dword [esi + 0x10]
mov eax, ebp
adc eax, 0
cmp eax, dword [esi + 0x14]
jb 0x44a662
ja 0x44a65e
cmp ecx, edx
jbe 0x44a662
mov edi, edx
sub edi, ebx
mov eax, dword [esi + 4]
add eax, ebx
push edi
push eax
lea eax, [esp + 0x28]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
xor ecx, ecx
add eax, ebx
mov dword [esi + 0x18], eax
adc ecx, ebp
mov dword [esi + 0x1c], ecx
test edi, edi
je 0x44a69e
mov eax, dword [esp + 0x20]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x44a6a2
mov eax, dword [esp + 0x20]
mov ecx, 0x8b1f
cmp ax, cx
je 0x44a6c4
push esi
mov edi, 6
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esi + 0x40], 3
mov dword [esi + 0x44], 0
or eax, 4
mov dword [esi + 8], 0
mov dword [esi], eax
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
lea eax, [esi + 0x110]
mov dword [esi + 0x2c], edx
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, eax
or ecx, 0
je 0x44a719
cmp byte [eax + esi + 0x10f], 0x5c
je 0x44a725
jmp 0x44a71b
xor eax, eax
mov word [eax + esi + 0x110], 0x5c
mov eax, dword [esp + 0x4c]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push esi
mov edi, 2
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edi, 4
push esi
call fcn.00445870
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret