Function at 0x4235e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebp
push esi
push edi
push 0x218
push 0
mov ebp, edx
mov dword [esp + 0x54], ecx
mov byte [esp + 0x1f], 0
mov dword [esp + 0x44], ebx
call ebx
mov esi, eax
test esi, esi
je 0x42363e
push 0x114
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esp + 0x78]
add esp, 0xc
test edi, edi
je 0x423655
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
call ebx
mov dword [esi + 0x48], eax
test eax, eax
jne 0x42364d
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, 0x4c
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x68]
mov eax, ecx
and eax, 0x3ffffff7
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x34], 0xffffffff
sub eax, 1
je 0x423723
sub eax, 1
je 0x4236a8
sub eax, 2
jne 0x42378f
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ebx, [esi + 4]
push 2
push eax
push eax
push ebx
call edi
push eax
push ebp
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4236ed
mov dword [ebx], ebp
jmp 0x4236f3
lea ebx, [esi + 4]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
push ebp
test ecx, ecx
jns 0x4236ca
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4236d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4236ed
mov ecx, esi
mov edi, 1
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov dword [esi], 2
push 1
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x42378f
mov ecx, esi
mov edi, 0x10
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov dword [esi + 4], ebp
test ebp, ebp
je 0x423734
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
jmp 0x423783
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [esp + 0x60]
mov edi, eax
push 0xa
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x423f14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x423f14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 4], eax
test eax, eax
je 0x423efe
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 + 0x68], 8
je 0x4237db
push 0x2a
lea eax, [esi + 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 8
mov dword [esi + 0x8e], 0
mov word [esi + 0x56], ax
add esp, 0xc
mov eax, dword [esi + 0xc]
or dword [esi], 8
mov dword [esi + 0x76], eax
mov dword [esi + 0x8a], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
jmp 0x423ea2
test byte [esi], 1
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0x20], eax
jne 0x423816
push 2
lea ecx, [esp + 0x44]
xorps xmm0, xmm0
push ecx
movlpd qword [esp + 0x48], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [esi + 4]
call eax
mov eax, dword [esp + 0x40]
sub eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x44]
sbb ecx, 0
jmp 0x423822
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
xor ebp, ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov ebx, 0xffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebp
test ecx, ecx
jg 0x42384f
jl 0x423843
cmp eax, ebx
jae 0x42384f
mov ebx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], ebx
mov ebp, ecx
push 0x404
push 0
call dword [esp + 0x44]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x423efe
xor ecx, ecx
mov eax, 4
cmp ecx, ebp
jg 0x4238f8
jl 0x423880
cmp eax, ebx
jae 0x4238f8
nop dword [eax]
add eax, 0x400
mov dword [esp + 0x28], eax
adc ecx, 0
mov dword [esp + 0x3c], ecx
cmp ecx, ebp
jl 0x4238a6
jg 0x42389a
cmp eax, ebx
jbe 0x4238a6
mov eax, ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x28], eax
mov ecx, ebp
mov ebx, dword [esp + 0x30]
mov ebp, ebx
mov edx, dword [esp + 0x34]
sub ebp, eax
sbb edx, ecx
mov dword [esp + 0x1c], edx
test ecx, ecx
jb 0x4238cc
ja 0x4238c5
cmp eax, 0x404
jbe 0x4238cc
mov ebx, 0x404
jmp 0x4238ce
sub ebx, ebp
test byte [esi], 1
jne 0x42392d
mov ecx, dword [esi + 0xc]
xor eax, eax
add ecx, ebp
push 0
adc eax, edx
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], eax
push edx
push eax
push ecx
push dword [esi + 4]
call dword [esp + 0x34]
test eax, eax
jne 0x423933
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x423e32
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x50]
push 0
push ecx
push 0
push eax
push dword [esi + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0
call dword [esp + 0x34]
jmp 0x423e40
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], edx
test byte [esi], 1
mov edi, ebx
jne 0x423968
push 0
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x24]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x423962
xor edi, edi
mov dword [esi + 8], 7
mov dword [esp + 0x38], edi
jmp 0x4239a6
mov edi, dword [esp + 0x38]
jmp 0x4239a6
mov ecx, dword [esi + 0x18]
xor eax, eax
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], ebx
add dword [esp + 0x24], ecx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x42398c
ja 0x423988
cmp dword [esp + 0x24], edx
jbe 0x42398c
mov edi, edx
sub edi, ecx
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push dword [esp + 0x20]
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 + 0x18]
je 0x4238f8
lea ecx, [ebx - 3]
test ecx, ecx
js 0x4239e1
lea eax, [edi + 3]
add eax, ecx
nop
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x4239dd
cmp byte [edx + edi], 0x4b
jne 0x4239dd
cmp byte [eax - 1], 5
jne 0x4239dd
cmp byte [eax], 6
je 0x423a04
test ecx, ecx
jns 0x4239c0
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
cmp ecx, ebp
jg 0x4238f8
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
jge 0x423879
jmp 0x423880
cmp byte [ecx + edi - 0x14], 0x50
lea eax, [ecx + edi]
jne 0x423a2d
cmp byte [eax - 0x13], 0x4b
jne 0x423a2d
cmp byte [eax - 0x12], 6
jne 0x423a2d
cmp byte [eax - 0x11], 7
jne 0x423a2d
mov ebp, dword [eax - 0xc]
mov ebx, dword [eax - 8]
mov byte [esp + 0x17], 1
jmp 0x423a38
mov ebx, dword [esp + 0x1c]
mov eax, ecx
cdq
add ebp, eax
adc ebx, edx
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test byte [esi], 1
jne 0x423a6b
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x50]
xor eax, eax
add ecx, ebp
push 0
push edx
adc eax, ebx
mov dword [esp + 0x58], ecx
push eax
push ecx
push dword [esi + 4]
mov dword [esp + 0x68], eax
call dword [esp + 0x34]
jmp 0x423a71
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov eax, dword [esi + 8]
mov dword [esp + 0x40], 0
test eax, eax
jne 0x423a93
push 4
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
mov eax, dword [esi + 8]
add esp, 4
cmp byte [esp + 0x17], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x38], ecx
je 0x423b90
mov ecx, esi
call fcn.00421e40
mov ecx, dword [esi + 8]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], 0
test ecx, ecx
jne 0x423ae8
push 4
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
mov ecx, dword [esi + 8]
add esp, 4
xor ebx, ebx
mov dword [esp + 0x40], ebx
test ecx, ecx
jne 0x423b2f
push 4
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423b2b
movzx ebx, byte [esp + 0x43]
movzx eax, byte [esp + 0x42]
mov ecx, dword [esp + 0x40]
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 0x423b2f
mov ebx, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x40], edi
cmp dword [esi + 8], edi
jne 0x423b77
push 4
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423b73
movzx edi, byte [esp + 0x43]
movzx eax, byte [esp + 0x42]
mov ecx, dword [esp + 0x40]
shl edi, 8
or edi, eax
movzx eax, ch
shl edi, 8
or edi, eax
movzx eax, cl
shl edi, 8
or edi, eax
jmp 0x423b77
mov edi, dword [esp + 0x40]
mov ecx, esi
call fcn.00421e40
mov dword [esi + 0x20], eax
mov ecx, esi
mov dword [esi + 0x24], edx
call fcn.00421e40
jmp 0x423c72
test eax, eax
jne 0x423bbe
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423bbe
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423bc2
mov eax, dword [esp + 0x40]
cmp dword [esi + 8], 0
movzx ebx, ax
jne 0x423bf5
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423bf5
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423bf9
mov eax, dword [esp + 0x40]
cmp dword [esi + 8], 0
movzx edi, ax
jne 0x423c2c
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423c2c
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423c30
mov eax, dword [esp + 0x40]
movzx eax, ax
cdq
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [esi + 8], 0
jne 0x423c6a
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423c6a
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423c6e
mov eax, dword [esp + 0x40]
movzx eax, ax
cdq
cmp dword [esi + 8], 0
jne 0x423e7e
cmp eax, dword [esi + 0x20]
jne 0x423e1c
cmp edx, dword [esi + 0x24]
jne 0x423e1c
test edi, edi
jne 0x423e1c
test ebx, ebx
jne 0x423e1c
mov ecx, esi
cmp byte [esp + 0x17], bl
je 0x423d13
call fcn.00421e40
mov ecx, esi
mov edi, eax
mov ebx, edx
call fcn.00421e40
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov ecx, dword [esi + 0xc]
add eax, ecx
mov dword [esp + 0x40], 0
adc edx, 0
add eax, dword [esp + 0x3c]
adc edx, dword [esp + 0x38]
add eax, edi
adc edx, ebx
add eax, 0x34
adc edx, 0
test byte [esi], 1
jne 0x423d08
add ecx, eax
mov eax, dword [esp + 0x40]
push 0
adc eax, edx
mov dword [esp + 0x54], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], eax
push edx
push eax
push ecx
push dword [esi + 4]
call dword [esp + 0x34]
jmp 0x423da6
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
jmp 0x423da6
push 4
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423d52
movzx edi, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
mov ecx, dword [esp + 0x18]
shl edi, 8
or edi, eax
movzx eax, ch
shl edi, 8
or edi, eax
movzx eax, cl
shl edi, 8
or edi, eax
jmp 0x423d56
mov edi, dword [esp + 0x18]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], edx
cmp dword [esi + 8], edx
jne 0x423da0
push 4
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423d9c
movzx edx, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
mov ecx, dword [esp + 0x18]
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 0x423da0
mov edx, dword [esp + 0x18]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebx
cmp dword [esi + 8], 0
jne 0x423dd6
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423dd6
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423dda
mov eax, dword [esp + 0x40]
cmp dword [esi + 8], 0
movzx eax, ax
mov dword [esi + 0x28], eax
jne 0x423e7e
mov edx, dword [esi + 0xc]
xor eax, eax
mov ecx, dword [esi + 0x44]
add edx, ebp
mov dword [esp + 0x40], edx
adc eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x40]
add edx, edi
adc ecx, ebx
cmp eax, ecx
jb 0x423e7e
ja 0x423e0f
cmp dword [esp + 0x40], edx
jb 0x423e7e
sub ebp, dword [esi + 0x40]
sub ebp, edi
add ebp, dword [esi + 0xc]
jmp 0x423ebd
mov ecx, esi
mov edi, 8
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
cmp dword [esi + 8], 0
jne 0x423e70
push 2
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.00421dc0
add esp, 4
test eax, eax
je 0x423e70
mov eax, dword [esp + 0x40]
movzx ecx, ah
movzx eax, al
shl cx, 8
or cx, ax
movzx eax, cx
jmp 0x423e74
mov eax, dword [esp + 0x40]
mov ecx, 0x8b1f
cmp ax, cx
je 0x423e94
mov ecx, esi
mov edi, 6
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov dword [esi + 0x40], 3
mov dword [esi + 0x44], 0
or dword [esi], 4
mov ebp, dword [esi + 0xc]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
lea eax, [esi + 0x110]
mov dword [esi + 0x2c], ebp
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x423ee2
cmp byte [eax + esi + 0x10f], 0x5c
je 0x423eee
jmp 0x423ee4
xor eax, eax
mov word [eax + esi + 0x110], 0x5c
mov eax, dword [esp + 0x4c]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, esi
mov edi, 2
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edi, 4
mov ecx, esi
call fcn.00423560
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret