Function at 0x1000f7a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
push esi
push edi
mov eax, dword [0x1004a178]
mov dword [ebp - 0x198], eax
mov byte [ebp - 2], 0x44
mov byte [ebp - 3], 0x58
mov byte [ebp - 1], 0x6b
mov ecx, 0x98f1
mov word [ebp - 0xc], cx
mov edx, 0x72
mov word [ebp - 0x100], dx
mov dword [ebp - 0x40], 0xb3f6
mov eax, 0x7df3a
mov dword [ebp - 0x24], 0xe6c1ab62
mov dword [ebp - 0x20], eax
mov ecx, dword [0x1004a0c8]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 6], 0xdc
mov dword [ebp - 0x28], 0x2e3ec074
xor edx, edx
mov dword [ebp - 0x4c], 0x2b25
mov dword [ebp - 0x48], edx
mov eax, dword [0x1004a15c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 5], 0x7f
mov ecx, dword [0x1004a130]
mov edx, dword [0x1004a134]
mov dword [ebp - 0x19c], edx
mov word [ebp - 0x50], cx
mov eax, dword [0x1004a14c]
mov byte [ebp - 7], al
mov ecx, dword [0x1004a148]
mov word [ebp - 0x10], cx
movsx edx, byte [0x1004a017]
mov dword [ebp - 0x34], edx
mov eax, 0xb2
mov word [ebp - 0x18], ax
xor ecx, ecx
mov dword [ebp - 0x3c], 0xbc
mov dword [ebp - 0x38], ecx
xor edx, edx
mov dword [ebp - 0x12c], 0xeae74c66
mov dword [ebp - 0x128], edx
mov al, byte [0x1004a144]
mov byte [ebp - 4], al
mov dword [ebp - 0x44], 0x22
mov ecx, dword [0x1004a178]
xor edx, edx
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 0x1a0], 0xf4ef9d6f
mov byte [ebp - 0x51], 0x40
movzx eax, byte [0x1004a0bb]
cdq
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e0], edx
mov eax, dword [0x1004a0d8]
mov ecx, dword [0x1004a0dc]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x194], eax
mov byte [ebp - 0x52], 0x5f
mov edx, dword [0x1004a188]
mov eax, dword [0x1004a18c]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1ac], edx
mov ecx, dword [0x1004a140]
mov dword [ebp - 0x1b0], ecx
mov edx, dword [0x1004a118]
mov dword [ebp - 0x1b4], edx
mov al, byte [0x1004a128]
mov byte [ebp - 0x53], al
mov ecx, dword [0x1004a168]
mov edx, dword [0x1004a16c]
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1e8], edx
movsx ax, byte [0x1004a03f]
mov word [ebp - 0xfc], ax
xor ecx, ecx
mov dword [ebp - 0x1f4], 0x6efc994c
mov dword [ebp - 0x1f0], ecx
mov edx, dword [0x1004a130]
mov eax, dword [0x1004a134]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x54], dl
movzx cx, byte [0x1004a0bc]
mov word [ebp - 0x104], cx
mov edx, dword [0x1004a190]
xor eax, eax
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x1f8], eax
mov ecx, dword [0x1004ac78]
mov dword [ebp - 0x58], ecx
movsx eax, byte [str.address_family_not]
cdq
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edx
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 0x48]
jg 0x1000fa8e
jl 0x1000f9b9
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x4c]
ja 0x1000fa8e
push 0x70
call fcn.10024660
add esp, 4
mov dword [0x1004a128], eax
mov ecx, dword [ebp - 0x3c]
or ecx, dword [ebp - 0x38]
jne 0x1000f9d9
mov dword [ebp - 0x74], 1
jmp 0x1000f9e0
mov dword [ebp - 0x74], 0
mov edx, dword [0x1004a148]
cmp edx, dword [ebp - 0x74]
jl 0x1000f9f4
mov dword [ebp - 0x78], 1
jmp 0x1000f9fb
mov dword [ebp - 0x78], 0
mov eax, dword [0x1004a190]
xor ecx, ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ecx
mov edx, dword [0x1004a13c]
cmp edx, dword [ebp - 0x110]
jg 0x1000fa34
jl 0x1000fa2b
mov eax, dword [str.J64_]
cmp eax, dword [ebp - 0x114]
ja 0x1000fa34
mov dword [ebp - 0x7c], 1
jmp 0x1000fa3b
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x7c]
je 0x1000fa55
movzx edx, byte [ebp - 6]
add edx, 0x70fa
mov dword [0x1004a144], edx
jmp 0x1000fa8c
mov eax, dword [0x1004a160]
mov ecx, dword [0x1004a164]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x11c]
or edx, dword [ebp - 0x118]
je 0x1000fa8c
movzx eax, byte [0x1004a0bc]
cdq
sub eax, 0x8b1a497f
mov dword [0x1004a0c8], eax
jmp 0x1000fab7
movzx eax, word [0x1004a0f0]
movzx ecx, word [ebp - 0xc]
sub eax, ecx
movzx edx, word [0x1004a0f0]
sub edx, eax
mov word [0x1004a0f0], dx
movsx eax, byte [ebp - 4]
xor eax, 0x5f47f907
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x375
mov dword [ebp - 0xf4], ecx
movsx edx, byte [0x1004a093]
test edx, edx
jne 0x1000fada
mov dword [ebp - 0x80], 1
jmp 0x1000fae1
mov dword [ebp - 0x80], 0
movsx eax, byte [ebp - 4]
add eax, 0x2b
jne 0x1000fafe
xor ecx, ecx
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x120], ecx
jmp 0x1000fb09
xorps xmm0, xmm0
movlpd qword [ebp - 0x124], xmm0
movzx eax, word [0x1004a150]
sub eax, dword [ebp - 0x80]
cdq
mov ecx, eax
mov edx, dword [0x1004a0c0]
mov eax, dword [0x1004a0c4]
mov dword [ebp - 0x1bc], eax
not edx
mov eax, 0xeb21
sub eax, edx
add ecx, eax
mov eax, dword [ebp - 0x34]
cdq
mov edx, dword [0x1004a130]
mov esi, dword [0x1004a134]
mov dword [ebp - 0x1c0], esi
sub edx, eax
sub edx, dword [ebp - 0x124]
sub ecx, edx
mov dword [0x1004a144], ecx
cmp dword [0x1004a15c], 0
je 0x1000fb75
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
jmp 0x1000fb8c
mov edx, dword [0x1004a188]
mov eax, dword [0x1004a18c]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xd4], eax
mov cl, byte [ebp - 0xd8]
mov byte [ebp - 7], cl
mov edx, dword [ebp - 0x58]
add edx, 0xba
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp - 0x58]
add edx, 0x2ac
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x84]
imul eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xf4]
add ecx, 0x397
cmp eax, ecx
je 0x1001073d
push 0
push 0
push 0x1003b508
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x28]
cdq
mov ecx, dword [0x1004a0f8]
mov esi, dword [0x1004a0fc]
not ecx
not esi
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x138], esi
mov edx, dword [ebp - 0x130]
cmp edx, dword [ebp - 0x138]
jl 0x1000fc5c
jg 0x1000fc50
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 0x13c]
jbe 0x1000fc5c
mov dword [ebp - 0x88], 1
jmp 0x1000fc66
mov dword [ebp - 0x88], 0
cmp dword [0x1004a140], 0
jne 0x1000fc83
movzx ecx, word [ebp - 0xc]
test ecx, ecx
jne 0x1000fc83
mov dword [ebp - 0x8c], 0
jmp 0x1000fc8d
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp - 0x88]
cmp edx, dword [ebp - 0x8c]
jge 0x1000fca7
mov dword [ebp - 0x90], 1
jmp 0x1000fcb1
mov dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
not eax
test eax, eax
je 0x1000fd96
mov ecx, dword [0x1004a0f8]
mov edx, dword [0x1004a0fc]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], edx
cmp dword [ebp - 0x140], 0
jg 0x1000fd06
jl 0x1000fcf0
cmp dword [ebp - 0x144], 0x3767
ja 0x1000fd06
movzx eax, byte [ebp - 5]
not eax
test eax, eax
jne 0x1000fd06
mov dword [ebp - 0x94], 0
jmp 0x1000fd10
mov dword [ebp - 0x94], 1
mov ecx, dword [ebp - 0x94]
not ecx
test ecx, ecx
je 0x1000fd3e
mov edx, 0x3bb8
mov word [ebp - 0x18], dx
movzx eax, word [ebp - 0x10]
xor eax, dword [0x1004a158]
not eax
movsx ecx, word [ebp - 0x18]
add eax, ecx
mov dword [0x1004a15c], eax
jmp 0x1000fd94
mov edx, dword [0x1004a168]
mov eax, dword [0x1004a16c]
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x14c]
or ecx, dword [ebp - 0x148]
jne 0x1000fd6f
mov dword [ebp - 0x98], 1
jmp 0x1000fd79
mov dword [ebp - 0x98], 0
movzx edx, word [ebp - 0x10]
cmp dword [ebp - 0x98], edx
jne 0x1000fd94
movsx eax, byte [0x1004a03f]
sub eax, dword [ebp - 0x28]
mov byte [0x1004a03f], al
jmp 0x1000fdba
cmp dword [0x1004a144], 0
jne 0x1000fdaa
mov ecx, 1
mov word [ebp - 0x2e], cx
jmp 0x1000fdb0
xor edx, edx
mov word [ebp - 0x2e], dx
mov ax, word [ebp - 0x2e]
mov word [0x1004a100], ax
mov dword [ebp - 0x2c], 0
jmp 0x1000fdcc
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp + 0x14]
jae 0x1001073d
movzx eax, byte [ebp - 2]
movzx ecx, byte [ebp - 5]
cmp eax, ecx
jge 0x1000fdf0
mov dword [ebp - 0x9c], 1
jmp 0x1000fdfa
mov dword [ebp - 0x9c], 0
movzx edx, byte [ebp - 2]
cmp edx, 0x44
jge 0x1000fe0f
mov dword [ebp - 0xa0], 1
jmp 0x1000fe19
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
jle 0x1000fe41
mov byte [ebp - 2], 0x3f
movzx ecx, word [0x1004a0f0]
add ecx, 0x3d
movzx edx, word [ebp - 0x10]
sub edx, ecx
mov word [ebp - 0x10], dx
jmp 0x1000fe71
movzx eax, byte [0x1004a056]
mov ecx, dword [0x1004a14c]
and ecx, eax
je 0x1000fe71
movsx edx, byte [ebp - 4]
movzx eax, word [ebp - 0xc]
not eax
sub edx, eax
mov dword [0x1004a14c], edx
movzx ecx, word [ebp - 0xc]
shl ecx, 2
mov byte [0x1004a03e], cl
mov edx, dword [str.FileName]
mov dword [ebp - 0x190], edx
mov eax, dword [0x1003b51c]
mov dword [ebp - 0x18c], eax
mov cl, byte [0x1003b520]
mov byte [ebp - 0x188], cl
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [ebp - 0x18], ax
mov eax, dword [0x1004ac78]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xa4], 4
movzx eax, byte [ebp - 2]
cdq
mov ecx, eax
movzx eax, byte [ebp - 7]
cdq
mov edx, dword [0x1004a130]
mov esi, dword [0x1004a134]
mov dword [ebp - 0x1c8], esi
xor eax, edx
xor ecx, eax
not ecx
mov byte [ebp - 2], cl
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 4
ja case.default.0x1000fefd
mov ecx, dword [ebp - 0xa8]
jmp dword [ecx*4 + 0x10010744]
mov edx, dword [ebp - 0x1c]
sub edx, dword [0x1004a17c]
mov dword [ebp - 0x1c], edx
mov eax, dword [0x1004a0d0]
sub eax, 0x5c3f5fba
mov byte [ebp - 3], al
jmp case.default.0x1000fefd
mov ecx, dword [0x1004a190]
not ecx
mov esi, ecx
xor edi, edi
add esi, dword [0x1004a0e8]
adc edi, dword [0x1004a0ec]
mov edx, dword [0x1004a0d8]
mov eax, dword [0x1004a0dc]
push eax
push edx
mov ecx, dword [0x1004a11c]
push ecx
mov edx, dword [0x1004a118]
push edx
call fcn.1002e960
push edx
push eax
push edi
push esi
call fcn.1002e960
mov esi, eax
mov edi, edx
mov eax, dword [0x1004a11c]
push eax
mov ecx, dword [0x1004a118]
push ecx
mov edx, dword [0x1004a11c]
push edx
mov eax, dword [0x1004a118]
push eax
call fcn.1002e960
push edx
push eax
push edi
push esi
call fcn.1002e960
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], edx
mov ecx, dword [ebp - 0x154]
or ecx, dword [ebp - 0x150]
jne 0x1000ffaf
mov byte [ebp - 0x11], 1
jmp 0x1000ffb3
mov byte [ebp - 0x11], 0
mov dl, byte [ebp - 0x11]
mov byte [ebp - 6], dl
mov eax, 2
imul ecx, eax, 0x80f1
movsx edx, word [ecx + 0x101fc880]
movsx eax, byte [ebp - 1]
sub eax, edx
mov byte [ebp - 1], al
jmp case.default.0x1000fefd
mov ecx, dword [0x1004a148]
imul ecx, dword [ebp - 0x40]
mov word [ebp - 0xc], cx
jmp case.default.0x1000fefd
mov edx, dword [ebp - 0x40]
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
push eax
push edx
push esi
push ecx
call fcn.1002e960
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
and ecx, eax
and esi, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
jmp case.default.0x1000fefd
cmp dword [0x1004a15c], 0
je 0x10010023
mov edx, dword [0x1004a158]
mov dword [ebp - 0xac], edx
jmp 0x1001002c
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xac], eax
mov cl, byte [ebp - 0xac]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x60]
add edx, 0x118
mov dword [ebp - 0xbc], edx
mov eax, dword [0x1004a0d8]
mov ecx, dword [0x1004a0dc]
mov dword [0x1004a0d8], eax
mov dword [0x1004a0dc], ecx
mov edx, dword [ebp - 0x60]
add edx, 0x358
mov dword [ebp - 0x1cc], edx
push 0x84
push 0x68
push 0x91
push 0x83
push 1
movsx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1d0], eax
movzx ecx, dx
push ecx
call fcn.10024c40
add esp, 0x1c
movzx edx, ax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
je 0x10010107
mov dword [ebp - 0x5c], 0xb
movzx eax, byte [0x1004a056]
cdq
mov ecx, dword [0x1004a0f8]
mov esi, dword [0x1004a0fc]
sub ecx, eax
sbb esi, edx
mov dword [0x1004a0f8], ecx
mov dword [0x1004a0fc], esi
movsx eax, byte [ebp - 4]
add eax, 0xce
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x34]
sub edx, 0x3dbf
mov byte [ebp - 4], dl
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0x1cdd
jl 0x100100e4
jmp 0x100101f9
movzx ecx, byte [ebp - 6]
cmp ecx, dword [0x1004a178]
ja 0x1001011f
mov dword [ebp - 0xb4], 1
jmp 0x10010129
mov dword [ebp - 0xb4], 0
mov edx, dword [0x1004a0d8]
mov eax, dword [0x1004a0dc]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x15c]
or ecx, dword [ebp - 0x158]
jne 0x1001015a
mov dword [ebp - 0xb0], 1
jmp 0x10010164
mov dword [ebp - 0xb0], 0
movsx edx, word [ebp - 0x50]
mov eax, dword [ebp - 0xb0]
sub eax, edx
not eax
mov ecx, dword [ebp - 0xb4]
sub ecx, eax
not ecx
test ecx, ecx
je 0x100101af
movsx eax, word [0x1004a100]
cdq
mov ecx, eax
mov edx, dword [0x1004a130]
mov eax, dword [0x1004a134]
mov dword [ebp - 0x1d4], eax
sub ecx, edx
movsx eax, word [0x1004a100]
cdq
and eax, ecx
mov word [0x1004a100], ax
jmp 0x100101f9
cmp dword [ebp - 0x44], 0
je 0x100101c4
movsx ecx, byte [ebp - 3]
movsx edx, byte [ebp - 1]
add ecx, edx
mov byte [ebp - 3], cl
jmp 0x100101f9
movzx eax, word [ebp - 0xc]
test eax, eax
je 0x100101f9
mov ecx, dword [0x1004a118]
or ecx, dword [0x1004a11c]
je 0x100101e6
movzx edx, byte [ebp - 6]
mov dword [ebp - 0xb8], edx
jmp 0x100101f0
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0xb8], eax
mov cl, byte [ebp - 0xb8]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 0x60]
add edx, 0x367
mov dword [ebp - 0xf8], edx
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xbc]
imul ecx, eax, 0x1a6
mov edx, dword [ebp - 0xf8]
xor edx, 0x109
cmp ecx, edx
je 0x10010738
mov eax, 0x56af
mov word [0x1004a150], ax
movzx eax, word [0x1004a150]
cdq
mov ecx, eax
mov esi, edx
movsx eax, byte [ebp - 3]
cdq
add eax, 0x583656af
adc edx, 0x1e0a1
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], edx
mov edx, dword [ebp - 0x164]
cmp edx, dword [ebp - 0x16c]
jne 0x1001036f
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x168]
jne 0x1001036f
movsx ecx, byte [ebp - 3]
add ecx, 0x37d07db2
cmp dword [0x1004a15c], ecx
jne 0x1001036f
mov dword [ebp - 0x64], 0x1a2
jmp 0x100102b9
mov edx, dword [ebp - 0x64]
sub edx, 1
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jle 0x100102e5
lea eax, [ebp - 0x638]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 2], al
mov ecx, dword [0x1004a140]
add ecx, 1
mov dword [0x1004a140], ecx
jmp 0x100102b0
jmp 0x1001036f
mov edx, 0x56af
mov word [0x1004a150], dx
movzx eax, word [0x1004a0cc]
xor eax, 0xb7
mov byte [0x1004a0bc], al
mov byte [ebp - 3], 2
movzx ecx, byte [ebp - 7]
test ecx, ecx
jne 0x100103a4
mov dword [ebp - 0xc4], 1
jmp 0x100103ae
mov dword [ebp - 0xc4], 0
movzx edx, byte [ebp - 2]
test edx, edx
jne 0x100103c2
mov dword [ebp - 0xc8], 1
jmp 0x100103cc
mov dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x1c]
sub eax, 0xcd
movzx ecx, byte [0x1004a056]
sub eax, ecx
cdq
mov ecx, eax
mov esi, dword [ebp - 0x40]
xor esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc4]
sub eax, dword [ebp - 0xc8]
not eax
cdq
sub esi, eax
not esi
add ecx, esi
mov byte [ebp - 5], cl
mov dl, byte [ebp - 3]
mov byte [ebp - 0x68], dl
cmp byte [ebp - 0x68], 0
je 0x10010418
cmp byte [ebp - 0x68], 1
je 0x10010434
cmp byte [ebp - 0x68], 2
je 0x10010442
jmp 0x10010452
movzx eax, word [ebp - 0xc]
sub eax, 0x94c2
mov dword [ebp - 0x44], eax
movzx ecx, byte [ebp - 5]
movsx edx, byte [ebp - 1]
imul ecx, edx
mov byte [ebp - 5], cl
jmp 0x10010452
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x10010452
movsx eax, byte [ebp - 1]
cdq
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov dword [0x1004a154], edx
mov eax, dword [0x1004ac78]
mov dword [ebp - 0x6c], eax
mov cx, word [str.J64_]
mov edx, 2
imul eax, edx, 0xba0
mov word [eax + 0x10221730], cx
mov ecx, dword [ebp - 0x6c]
add ecx, 0x3e
mov dword [ebp - 0x70], ecx
movzx edx, word [0x1004a0f0]
movzx eax, byte [ebp - 2]
imul edx, eax
movzx ecx, word [0x1004a0f0]
and ecx, edx
mov word [0x1004a0f0], cx
imul edx, dword [0x1004a140], 0x6ae4
mov dword [0x1004a14c], edx
mov eax, dword [ebp - 0x6c]
add eax, 0x3bd
mov dword [ebp - 0x200], eax
movzx ecx, byte [0x1004a0bb]
test ecx, ecx
je 0x1001055c
movzx edx, byte [0x1004a056]
cmp edx, dword [ebp - 0x28]
jne 0x10010513
movzx eax, byte [0x1004a0bc]
sub eax, dword [ebp - 0x34]
movzx ecx, byte [0x1004a0bc]
add ecx, eax
mov byte [0x1004a0bc], cl
mov eax, dword [0x1004a148]
cdq
push edx
push eax
mov edx, dword [0x1004a0d4]
push edx
mov eax, dword [0x1004a0d0]
push eax
call fcn.1002e960
mov dword [0x1004a0d0], eax
mov dword [0x1004a0d4], edx
jmp 0x1001055c
cmp dword [0x1004a144], 0
je 0x1001055c
imul ecx, dword [0x1004a190], 0xf7b7b991
mov dword [ebp - 0x28], ecx
movsx edx, byte [ebp - 1]
test edx, edx
je 0x10010540
movsx eax, byte [0x1004a03e]
mov dword [ebp - 0xcc], eax
jmp 0x10010549
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
xor eax, eax
mov dword [0x1004a0e8], edx
mov dword [0x1004a0ec], eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x1c2
mov dword [ebp - 0xd0], ecx
mov edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0x70]
sub eax, edx
mov ecx, dword [ebp - 0xd0]
sub ecx, dword [ebp - 0x70]
cmp eax, ecx
je 0x10010738
push 0xffffffffffffffb7
movzx edx, byte [ebp - 4]
push edx
push 0x2f
push 0x4d
push 0
call fcn.100248f0
add esp, 0x14
movsx eax, al
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x4c]
or eax, dword [ebp - 0x48]
je 0x100106db
mov ecx, dword [0x1004a0d8]
mov esi, dword [0x1004a0dc]
movzx eax, word [0x1004a0cc]
cdq
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x180], edx
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp - 0x184]
jne 0x100105fd
mov eax, dword [ebp - 0x178]
cmp eax, dword [ebp - 0x180]
je 0x1001066c
movzx ecx, byte [ebp - 7]
imul ecx, dword [ebp - 0x34]
movsx edx, byte [ebp - 3]
add ecx, edx
jne 0x10010621
xor eax, eax
mov dword [ebp - 0xe8], 1
mov dword [ebp - 0xe4], eax
jmp 0x1001062c
xorps xmm0, xmm0
movlpd qword [ebp - 0xe8], xmm0
movzx eax, byte [0x1004a056]
movzx ecx, word [ebp - 0xc]
sub eax, ecx
cdq
mov ecx, dword [0x1004a168]
mov esi, dword [0x1004a16c]
and ecx, dword [ebp - 0x3c]
and esi, dword [ebp - 0x38]
xor eax, ecx
xor edx, esi
push edx
push eax
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0xe8]
push eax
call fcn.1002e960
mov dword [0x1004a144], eax
jmp 0x100106d9
movsx ecx, byte [0x1004a017]
movzx edx, word [0x1004a124]
sub ecx, edx
jne 0x10010692
xor eax, eax
mov dword [ebp - 0xf0], 1
mov dword [ebp - 0xec], eax
jmp 0x1001069d
xorps xmm0, xmm0
movlpd qword [ebp - 0xf0], xmm0
movzx eax, word [ebp - 0x10]
cdq
mov ecx, dword [0x1004a170]
add ecx, 0xe894
mov esi, dword [0x1004a174]
adc esi, 0
not ecx
not esi
sub eax, ecx
sbb edx, esi
push edx
push eax
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0xf0]
push eax
call fcn.1002e960
mov dword [0x1004a15c], eax
jmp 0x100106f2
movsx ecx, word [ebp - 0x18]
cmp dword [ebp - 0x44], ecx
ja 0x100106f2
imul eax, dword [ebp - 0x28], 0x4ba6
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov ecx, 9
mov esi, str.connection_refused
lea edi, [ebp - 0x228]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x2c]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x2c]
mov byte [ecx], al
jmp 0x1000fdc3
pop edi
pop esi
mov esp, ebp
pop ebp
ret