Function at 0x4247e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], eax
jne 0x424b92
mov ecx, dword [esi]
test cl, 8
je 0x424819
mov eax, 0xd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x64]
and ecx, 0xffffff0f
mov edx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x24], eax
and eax, 0xffffffcf
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x60], 0
mov dword [esi], ecx
mov dword [esp + 0x2c], edx
sub eax, 1
je 0x4249d5
sub eax, 1
je 0x4248f4
sub eax, 6
je 0x4248ca
mov ebp, dword [esp + 0x58]
test ebp, ebp
je 0x424b92
mov edx, dword [esp + 0x5c]
mov eax, edx
mov edi, dword [esp + 0x60]
or eax, edi
je 0x424b92
mov dword [esi + 0x64], ebp
or ecx, 0xa0
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edi
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edi
mov dword [esi], ecx
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esp + 0x1c], ebp
jmp 0x42496b
mov ebp, dword [esp + 0x30]
mov dword [esi + 0x64], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esp + 0x28], 0x41c00010
mov dword [esp + 0x1c], ebp
jmp 0x424a46
mov edi, dword [esp + 0x58]
test edi, edi
je 0x424b92
test byte [esp + 0x24], 0x10
push 0
push 0
push 3
push 0
push 3
push connect
push edi
je 0x42491f
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x424925
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x64], eax
cmp eax, 0xffffffff
jne 0x42493c
mov ebp, 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
push 0
push 0
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.004243f0
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4249c2
or dword [esi], 0x40
test ebx, ebx
cmovne edi, ebx
mov ebx, edi
test byte [esi], 0x20
jne 0x424abd
test byte [esp + 0x24], 0x10
mov dword [esp + 0x28], 0x81800000
push ebx
je 0x424a19
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea ecx, [ebx + eax*2]
movzx eax, word [ecx]
cmp eax, 0x2e
je 0x424a46
cmp ecx, ebx
jbe 0x424a3e
cmp ax, 0x2f
je 0x424a3e
cmp ax, 0x5c
je 0x424a3e
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x2e
jne 0x424995
jmp 0x424a46
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x58]
mov dword [esi + 0x64], eax
test eax, eax
je 0x424b92
cmp eax, 0xffffffff
je 0x424b92
push dword [esp + 0x60]
lea edx, [esp + 0x40]
mov ecx, esi
push dword [esp + 0x60]
call fcn.004243f0
mov ebp, eax
mov dword [esp + 0x24], eax
add esp, 8
test ebp, ebp
je 0x424962
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call dword [esp + 0x30]
lea ecx, [ebx - 1]
add ecx, eax
mov al, byte [ecx]
cmp al, 0x2e
je 0x424a46
cmp ecx, ebx
jbe 0x424a3e
cmp al, 0x2f
je 0x424a3e
cmp al, 0x5c
je 0x424a3e
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x2e
jne 0x424a28
jmp 0x424a46
mov dword [esp + 0x28], 0x81c00000
test byte [esp + 0x24], 0x20
jne 0x424ab3
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004b78b0
movzx ebp, word [esp + 0x14]
movzx ecx, word [esp + 0x18]
shl ebp, 0x10
or ebp, ecx
mov dword [esp + 0x18], ebp
jmp 0x424ad1
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x18], ebp
jmp 0x424acd
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
push 0x159
push 0
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x424af0
lea ebx, [eax + 2]
jmp 0x424b97
push 0x150
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, eax
and ecx, 0x20
mov dword [esp + 0x34], ecx
je 0x424b49
mov eax, 8
mov bl, 8
mov word [edi + 2], ax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x3c], eax
or dword [esi], 0x80000000
mov ecx, dword [esi]
mov byte [esp + 0x14], bl
jmp 0x424e12
lea ebp, [edi + 0x48]
test al, 0x10
je 0x424b77
push 0
push 0
push 0x104
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [edi + 0x20], eax
test eax, eax
je 0x424b8b
dec eax
mov dword [edi + 0x20], eax
jmp 0x424b87
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [esp + 0x30]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x424baf
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, 9
mov ebp, dword [esp + 0x20]
test byte [esi], 0x40
je 0x424ba5
push dword [esi + 0x64]
call ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, ebp
mov cl, byte [eax]
test cl, cl
je 0x424bc7
cmp cl, 0x5c
jne 0x424bbf
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x424bb7
mov edx, dword [esp + 0x30]
lea ecx, [edi + 0x150]
mov eax, 8
mov byte [esp + 0x41], dl
mov word [edi], ax
xor bl, bl
mov eax, dword [esp + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x34], eax
lea eax, [esp + 0x3c]
mov dword [edi + 0x40], eax
mov eax, edx
shr eax, 8
mov byte [esp + 0x42], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x43], al
mov dword [edi + 0x44], ecx
mov dword [esp + 0x3c], 0xd5455
mov byte [esp + 0x40], 7
movq xmm0, qword [esp + 0x3c]
mov dword [edi + 0x24], 0x11
mov dword [edi + 0x28], 9
shr edx, 0x18
mov byte [esp + 0x44], dl
movq qword [ecx], xmm0
mov al, byte [esp + 0x44]
mov byte [ecx + 8], al
mov eax, dword [edi + 0x44]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x14], bl
mov byte [eax + 2], 5
mov eax, dword [edi + 0x44]
mov byte [eax + 4], 1
cmp dword [esi], 0
jge 0x424c6a
mov bl, 8
mov dword [edi + 0x24], 0
mov byte [esp + 0x14], bl
jmp 0x424ce6
test byte [esp + 0x24], 8
je 0x424c85
mov eax, dword [edi + 0x20]
cmp byte [eax + edi + 0x47], 0x2f
je 0x424ce6
mov byte [eax + edi + 0x48], 0x2f
inc dword [edi + 0x20]
jmp 0x424ce6
cmp dword [esi + 8], 0
je 0x424c9b
mov eax, 9
mov dword [esp + 0x1c], 0xc
mov word [edi], ax
push ebp
call dword [esp + 0x30]
lea ebx, [eax + ebp]
cmp ebx, ebp
jbe 0x424cb3
cmp byte [ebx], 0x2e
je 0x424cb1
dec ebx
cmp ebx, ebp
ja 0x424ca7
cmp ebx, ebp
jne 0x424cba
cmp byte [ebx], 0x2e
jne 0x424cda
mov ebp, 0x4bb510
nop
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x424ce2
push ebp
call dword [esp + 0x30]
inc ebp
add ebp, eax
cmp byte [ebp], 0
jne 0x424cc0
mov bl, 8
mov byte [esp + 0x14], bl
jmp 0x424ce6
mov bl, byte [esp + 0x14]
mov ax, word [edi]
mov ebp, dword [esp + 0x1c]
mov word [edi + 0x30], ax
movzx eax, bl
mov word [edi + 2], ax
test bl, bl
jne 0x424d19
mov edx, dword [esi + 0x50]
mov eax, edx
mov ebx, dword [esi + 0x54]
and eax, ebx
cmp eax, 0xffffffff
je 0x424d19
mov eax, ebp
xor ecx, ecx
add eax, edx
mov dword [edi + 0x10], eax
adc ecx, ebx
mov dword [edi + 0x14], ecx
mov eax, dword [esi + 0x50]
mov edx, esi
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x10]
add ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
adc eax, dword [esi + 0x1c]
mov dword [edi + 0x38], ecx
mov ecx, edi
mov dword [edi + 0x3c], eax
mov dword [esi + 0x20], 0
call fcn.00423630
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x42513d
mov ecx, dword [esi]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x424d69
lea eax, [edx + 0xb]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], eax
jmp 0x424e0e
mov eax, dword [edi + 0x24]
add eax, 0x32
add eax, edx
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test ebp, ebp
je 0x424e0e
mov dword [esi + 0x38], 0x12345678
mov dword [esi + 0x3c], 0x23456789
mov dword [esi + 0x40], 0x34567890
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x424db3
nop dword [eax]
mov dl, byte [ebx]
test dl, dl
je 0x424db3
lea ecx, [esi + 0x38]
call fcn.004240b0
add ebx, 1
jne 0x424da0
xor ebx, ebx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
sar eax, 7
mov byte [esp + ebx + 0x3c], al
inc ebx
cmp ebx, 0xc
jl 0x424db5
mov al, byte [edi + 5]
xor ebx, ebx
mov byte [esp + 0x47], al
mov dl, byte [esp + ebx + 0x3c]
lea ecx, [esi + 0x38]
call fcn.00424100
mov byte [esp + ebx + 0x3c], al
inc ebx
cmp ebx, 0xc
jl 0x424dd1
push 0xc
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.00424230
mov ebx, dword [esi + 0x20]
add esp, 4
test ebx, ebx
jne 0x42513d
add dword [esi + 0x10], 0xc
adc dword [esi + 0x14], ebx
or dword [esi], 0x10
mov ecx, dword [esi]
mov bl, byte [esp + 0x14]
mov edx, dword [esi + 0x64]
test edx, edx
je 0x424efa
cmp bl, 8
jne 0x424e30
mov edx, edi
mov ecx, esi
call fcn.00424540
jmp 0x424eb9
test cl, cl
mov ecx, esi
jns 0x424e64
mov ebx, dword [esi + 0x68]
push ebx
call fcn.00424230
mov edx, dword [esi + 0x64]
add esp, 4
add dword [esi + 0x58], ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push ebx
call fcn.00423fc0
add esp, 4
mov dword [esi + 0x60], eax
add dword [esi + 0x70], ebx
adc dword [esi + 0x74], 0
jmp 0x424eb2
push 0x4000
lea edx, [esi + 0x84]
call fcn.00424480
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x424eb2
nop dword [eax]
cmp dword [esi + 0x20], 0
jne 0x424eb2
push ebx
lea edx, [esi + 0x84]
mov ecx, esi
call fcn.00424230
add esp, 4
lea edx, [esi + 0x84]
mov ecx, esi
push 0x4000
call fcn.00424480
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x424e80
add dword [esi + 0x78], ebx
adc dword [esi + 0x7c], 0
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x42513d
mov ecx, dword [esi]
mov ebp, dword [esp + 0x20]
and ecx, 0xffffffef
mov dword [esi], ecx
test cl, 0x40
je 0x424edb
push dword [esi + 0x64]
call ebp
mov ecx, dword [esi]
mov eax, dword [esi + 0x58]
and ecx, 0xffffffbf
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x78]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x7c]
adc dword [esi + 0x14], eax
mov dword [esi], ecx
jmp 0x424efe
mov ebp, dword [esp + 0x20]
test ecx, ecx
jns 0x424f57
or ecx, 8
cmp dword [esp + 0x34], 0
mov dword [esi], ecx
jne 0x425122
mov edx, dword [esi + 0x60]
mov ecx, esi
call fcn.00424170
movzx edx, word [esi + 0x62]
mov ecx, esi
call fcn.00424170
mov edx, dword [esi + 0x58]
mov ecx, esi
call fcn.00424170
mov edx, dword [esi + 0x58]
mov ecx, esi
mov eax, dword [esi + 0x5c]
shrd edx, eax, 0x10
call fcn.00424170
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x425141
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov eax, ebx
mov ecx, edx
add eax, dword [esi + 0x78]
adc ecx, dword [esi + 0x7c]
cmp dword [edi + 0x10], eax
jne 0x424f75
cmp dword [edi + 0x14], ecx
jne 0x424f75
mov cl, 1
jmp 0x424f77
xor cl, cl
mov eax, dword [esi + 0x60]
mov dword [edi + 8], eax
mov eax, ebx
add eax, dword [esi + 0x78]
adc edx, dword [esi + 0x7c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, dword [esi + 0x50]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x1c], eax
test byte [esi], 4
je 0x425022
test ebx, ebx
jne 0x425022
movzx eax, byte [esp + 0x14]
mov word [edi + 2], ax
movzx eax, word [edi]
mov ecx, eax
test al, 1
jne 0x424fc5
and eax, 0xfff7
mov word [edi], ax
movzx ecx, ax
mov eax, dword [edi + 0x3c]
mov word [edi + 0x30], cx
mov ecx, dword [edi + 0x38]
sub ecx, dword [esi + 0x18]
sbb eax, dword [esi + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.00424350
add esp, 8
test eax, eax
je 0x425011
mov edx, esi
mov ecx, edi
call fcn.00423630
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x425141
push dword [esi + 0x14]
mov ecx, esi
push dword [esi + 0x10]
call fcn.00424350
add esp, 8
test eax, eax
jne 0x4250eb
mov ebx, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424b9b
mov dl, byte [esp + 0x14]
movzx eax, dl
cmp word [edi + 2], ax
jne 0x42512c
test dl, dl
jne 0x42503f
test cl, cl
je 0x42512c
mov edx, 0x8074b50
mov ecx, esi
call fcn.00424170
mov edx, 0x807
mov ecx, esi
call fcn.00424170
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.00424170
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.00424170
cmp dword [edi + 0x14], 0
mov edx, dword [edi + 0x10]
ja 0x42508d
cmp edx, 0xffffffff
jae 0x42508d
mov ecx, esi
call fcn.00424170
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
jmp 0x42509a
or edx, 0xffffffff
mov ecx, esi
call fcn.00424170
or edx, 0xffffffff
mov ecx, esi
call fcn.00424170
cmp dword [edi + 0x1c], 0
mov edx, dword [edi + 0x18]
ja 0x4250c2
cmp edx, 0xffffffff
jae 0x4250c2
mov ecx, esi
call fcn.00424170
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
jmp 0x4250cf
or edx, 0xffffffff
mov ecx, esi
call fcn.00424170
or edx, 0xffffffff
mov ecx, esi
call fcn.00424170
mov ebx, dword [esi + 0x20]
test ebx, ebx
jne 0x425141
add dword [esi + 0x10], 0x10
adc dword [esi + 0x14], ebx
mov ax, word [edi + 0x30]
mov word [edi], ax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x4250ff
mov dword [esi + 0x4c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [ecx + 0x14c]
test eax, eax
je 0x42511c
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x14c]
test eax, eax
jne 0x425110
mov dword [ecx + 0x14c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret
mov ebx, 0x11
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424b9b
mov ebp, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x424b9b