Function at 0x41a7f0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, edx
push esi
push edi
push 0x218
push 0
mov dword [esp + 0x44], ecx
mov byte [esp + 0x1b], 0
mov dword [esp + 0x38], ebp
call ebp
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x41a852
push 0x114
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esp + 0x68]
add esp, 0xc
test edi, edi
je 0x41a869
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 0x41a861
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, 0x3c
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x58]
mov eax, ecx
and eax, 0x3ffffff7
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
mov dword [esp + 0x2c], ecx
sub eax, 1
je 0x41a93c
sub eax, 1
je 0x41a8c1
sub eax, 2
jne 0x41a9ba
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ebp, [esi + 4]
push 2
push eax
push eax
push ebp
call edi
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41a904
mov dword [ebp], ebx
jmp 0x41a90d
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ebx
test ecx, ecx
jns 0x41a8e0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41a8e6
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x41a904
mov ecx, esi
mov edi, 1
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ebx, dword [esi + 4]
mov dword [esi], 2
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x41a9b6
mov ecx, esi
mov edi, 0x10
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esi + 4], ebx
test ebx, ebx
je 0x41a959
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi], 1
jmp 0x41a9ba
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [esp + 0x50]
mov edi, eax
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41b13b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41b13b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
test eax, eax
je 0x41b125
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
jmp 0x41a9ba
mov ebp, dword [esp + 0x30]
test byte [esp + 0x2c], 8
je 0x41aa08
push 0x2a
lea eax, [esi + 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esi + 0xc]
mov eax, 8
mov word [esi + 0x56], ax
add esp, 0xc
mov eax, dword [esi]
mov dword [esi + 0x76], edi
or eax, 8
mov dword [esi + 0x8a], edi
mov dword [esi + 0x8e], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x41b0c7
test byte [esi], 1
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x20], eax
jne 0x41aa43
push 2
lea ecx, [esp + 0x34]
xorps xmm0, xmm0
push ecx
movlpd qword [esp + 0x38], xmm0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esi + 4]
call eax
mov ecx, dword [esp + 0x30]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x34]
sbb edx, 0
jmp 0x41aa4f
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 + 0x30], edx
mov dword [esp + 0x2c], ecx
mov edi, 0xffff
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
test edx, edx
jg 0x41aa7a
jl 0x41aa70
cmp ecx, edi
jae 0x41aa7a
mov edi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
push 0x404
push 0
call ebp
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x41b125
mov eax, dword [esp + 0x24]
xor ebp, ebp
mov ebx, 4
cmp ebp, eax
jg 0x41ab21
jl 0x41aab0
cmp ebx, edi
jae 0x41ab21
nop word [eax + eax]
add ebx, 0x400
adc ebp, 0
cmp ebp, eax
jl 0x41aac7
jg 0x41aac3
cmp ebx, edi
jbe 0x41aac7
mov ebx, edi
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov edi, eax
mov edx, dword [esp + 0x30]
sub edi, ebx
sbb edx, ebp
mov dword [esp + 0x18], edx
test ebp, ebp
jb 0x41aaf1
ja 0x41aae7
cmp ebx, 0x404
jbe 0x41aaf1
mov dword [esp + 0x1c], 0x404
jmp 0x41aaf7
sub eax, edi
mov dword [esp + 0x1c], eax
test byte [esi], 1
jne 0x41ab59
mov ecx, dword [esi + 0xc]
xor eax, eax
add ecx, edi
push 0
adc eax, edx
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
push edx
push eax
push ecx
push dword [esi + 4]
call dword [esp + 0x34]
test eax, eax
jne 0x41ab5f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x41b052
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 + 0x34]
jmp 0x41b060
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
push dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ab21
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffffd
js 0x41abb0
mov eax, dword [esp + 0x14]
add eax, 3
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x41abac
mov esi, dword [esp + 0x14]
cmp byte [edx + esi], 0x4b
mov esi, dword [esp + 0x38]
jne 0x41abac
cmp byte [eax - 1], 5
jne 0x41abac
cmp byte [eax], 6
je 0x41abcb
test ecx, ecx
jns 0x41ab87
mov eax, dword [esp + 0x24]
cmp ebp, eax
jg 0x41ab21
mov edi, dword [esp + 0x28]
jge 0x41aaa6
jmp 0x41aab0
mov ebx, dword [esp + 0x14]
cmp byte [ecx + ebx - 0x14], 0x50
lea eax, [ecx + ebx]
jne 0x41abf8
cmp byte [eax - 0x13], 0x4b
jne 0x41abf8
cmp byte [eax - 0x12], 6
jne 0x41abf8
cmp byte [eax - 0x11], 7
jne 0x41abf8
mov edi, dword [eax - 0xc]
mov ebp, dword [eax - 8]
mov byte [esp + 0x13], 1
jmp 0x41ac03
mov ebp, dword [esp + 0x18]
mov eax, ecx
cdq
add edi, eax
adc ebp, edx
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x41ac36
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x40]
xor eax, eax
add ecx, edi
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 + 0x34]
jmp 0x41ac3c
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebp
mov eax, dword [esi + 8]
mov dword [esp + 0x30], 0
test eax, eax
jne 0x41ac5e
push 4
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
mov eax, dword [esi + 8]
add esp, 4
mov cl, byte [esp + 0x13]
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
test cl, cl
je 0x41aca6
mov ecx, esi
call fcn.00419030
mov ebx, eax
mov dword [esp + 0x30], 0
mov eax, dword [esi + 8]
mov ebp, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
test eax, eax
jne 0x41acb8
push 4
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
mov eax, dword [esi + 8]
add esp, 4
jmp 0x41acc4
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
jmp 0x41acbc
mov cl, byte [esp + 0x13]
test cl, cl
je 0x41ad6c
xor ebp, ebp
mov dword [esp + 0x30], ebp
test eax, eax
jne 0x41ad0b
push 4
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ad07
movzx ebp, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
mov ecx, dword [esp + 0x30]
shl ebp, 8
or ebp, eax
movzx eax, ch
shl ebp, 8
or ebp, eax
movzx eax, cl
shl ebp, 8
or ebp, eax
jmp 0x41ad0b
mov ebp, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x30], ebx
cmp dword [esi + 8], ebx
jne 0x41ad53
push 4
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ad4f
movzx ebx, byte [esp + 0x33]
movzx eax, byte [esp + 0x32]
mov ecx, dword [esp + 0x30]
shl ebx, 8
or ebx, eax
movzx eax, ch
shl ebx, 8
or ebx, eax
movzx eax, cl
shl ebx, 8
or ebx, eax
jmp 0x41ad53
mov ebx, dword [esp + 0x30]
mov ecx, esi
call fcn.00419030
mov dword [esi + 0x20], eax
mov ecx, esi
mov dword [esi + 0x24], edx
call fcn.00419030
jmp 0x41ae56
test eax, eax
jne 0x41ad9a
push 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ad9a
mov eax, dword [esp + 0x30]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41ad9e
mov eax, dword [esp + 0x30]
cmp dword [esi + 8], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
movzx ebp, ax
jne 0x41add9
push 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41add9
mov eax, dword [esp + 0x30]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41addd
mov eax, dword [esp + 0x30]
cmp dword [esi + 8], 0
movzx ebx, ax
jne 0x41ae10
push 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ae10
mov eax, dword [esp + 0x30]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41ae14
mov eax, dword [esp + 0x30]
movzx eax, ax
cdq
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [esi + 8], 0
jne 0x41ae4e
push 2
lea edx, [esp + 0x34]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41ae4e
mov eax, dword [esp + 0x30]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41ae52
mov eax, dword [esp + 0x30]
movzx eax, ax
cdq
cmp dword [esi + 8], 0
jne 0x41b09e
cmp eax, dword [esi + 0x20]
jne 0x41b03c
cmp edx, dword [esi + 0x24]
jne 0x41b03c
test ebx, ebx
jne 0x41b03c
test ebp, ebp
jne 0x41b03c
mov ecx, esi
cmp byte [esp + 0x13], bl
je 0x41af25
call fcn.00419030
mov ecx, esi
mov dword [esp + 0x1c], edx
mov ebx, eax
call fcn.00419030
mov dword [esi + 0x40], eax
lea ebp, [esi + 0x40]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 0xc]
add ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], 0
adc dword [esp + 0x14], esi
add ecx, ebx
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
adc dword [esp + 0x14], ecx
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
adc dword [esp + 0x14], edx
add eax, 0x34
mov edx, dword [esp + 0x14]
adc edx, 0
test byte [esi], 1
jne 0x41af16
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, 0
push 0
adc eax, edx
mov dword [esp + 0x44], ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
push edx
push eax
push ecx
push dword [esi + 4]
call dword [esp + 0x34]
jmp 0x41afc5
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov dword [esp + 0x1c], ecx
jmp 0x41afc5
push 4
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41af64
movzx ebx, byte [esp + 0x17]
movzx eax, byte [esp + 0x16]
mov ecx, dword [esp + 0x14]
shl ebx, 8
or ebx, eax
movzx eax, ch
shl ebx, 8
or ebx, eax
movzx eax, cl
shl ebx, 8
or ebx, eax
jmp 0x41af68
mov ebx, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edx
cmp dword [esi + 8], edx
jne 0x41afb8
push 4
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41afb4
movzx edx, byte [esp + 0x17]
movzx eax, byte [esp + 0x16]
mov ecx, dword [esp + 0x14]
shl edx, 8
or edx, eax
movzx eax, ch
shl edx, 8
or edx, eax
movzx eax, cl
shl edx, 8
or edx, eax
jmp 0x41afb8
mov edx, dword [esp + 0x14]
lea ebp, [esi + 0x40]
mov dword [ebp], edx
mov dword [ebp + 4], 0
cmp dword [esi + 8], 0
jne 0x41aff5
push 2
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41aff5
mov eax, dword [esp + 0x38]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41aff9
mov eax, dword [esp + 0x38]
cmp dword [esi + 8], 0
movzx eax, ax
mov dword [esi + 0x28], eax
jne 0x41b09e
mov edx, dword [ebp]
xor eax, eax
mov ecx, dword [ebp + 4]
mov ebp, dword [esi + 0xc]
add ebp, edi
mov dword [esp + 0x38], edx
adc eax, dword [esp + 0x18]
add edx, ebx
adc ecx, dword [esp + 0x1c]
cmp eax, ecx
jb 0x41b09e
ja 0x41b02e
cmp ebp, edx
jb 0x41b09e
sub edi, ebx
sub edi, dword [esp + 0x38]
add edi, dword [esi + 0xc]
jmp 0x41b0e1
mov ecx, esi
mov edi, 8
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp dword [esi + 8], 0
jne 0x41b090
push 2
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.00418fb0
add esp, 4
test eax, eax
je 0x41b090
mov eax, dword [esp + 0x38]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x41b094
mov eax, dword [esp + 0x38]
mov ecx, 0x8b1f
cmp ax, cx
je 0x41b0b4
mov ecx, esi
mov edi, 6
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, 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], edi
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, eax
or ecx, 0
je 0x41b109
cmp byte [eax + esi + 0x10f], 0x5c
je 0x41b115
jmp 0x41b10b
xor eax, eax
mov word [eax + esi + 0x110], 0x5c
mov eax, dword [esp + 0x3c]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, esi
mov edi, 2
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, 4
mov ecx, esi
call fcn.0041a760
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret