Function at 0x467650
Capabilities:
Check http status code
Check if file exists
Create directory
Get file attributes
Get thread local storage value
Read file on windows
Set file attributes

Disassembly:
mov eax, 0x52dc
call fcn.004ad6f0
mov al, byte [0x526974]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x3284], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x3285]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5296dc]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4676a2
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x52dc
ret
cmp dword [esi + 0x3c], edi
je 0x4676b2
mov dword [esp + 0x22c], 0x1018
mov ebp, dword [esp + 0x52f0]
mov dword [esi + 0x3cf8], edi
mov dword [esi + 0x3cfc], edi
cmp dword [ebp + 0x2c], edi
jne 0x46770c
cmp dword [esi + 0x4c], edi
jne 0x46770c
cmp dword [esi + 0x54], edi
jne 0x46770c
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x3284]
push edx
push eax
call fcn.0046b610
lea ecx, [esp + 0x328c]
push ecx
call fcn.0046d230
add esp, 0xc
test eax, eax
jne 0x46770c
lea edx, [esp + 0x3284]
push 0x51cdf4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 0x1d4]
mov ebx, 0x2f
cmp eax, edi
jne 0x46774d
lea eax, [esp + 0x4a84]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x8e], eax
mov eax, dword [esi + 0x1d4]
cmp eax, edi
jne 0x46774d
push ebp
call fcn.00464630
add esp, 4
test eax, eax
jne 0x46882a
mov ebp, dword [esp + 0x52f0]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x3284]
lea eax, [esi + 0x2cf0]
push 0x800
push ecx
push eax
call edi
mov byte [esi + 0x34ef], 0
mov eax, dword [ebp + 0x8e]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
add eax, 0x46
mov cl, byte [eax]
test cl, cl
je 0x467796
cmp cl, 0x2f
jne 0x46778d
mov byte [eax], 0x5c
push eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x467785
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4677d4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4677c1
add eax, 0x26
push 0x800
push eax
lea edx, [esp + 0xa44]
push edx
call edi
mov byte [esp + 0x123b], 0
jmp 0x46780d
add eax, 0x26
push 0x104
push eax
lea eax, [esp + 0x130]
push eax
jmp 0x467803
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4677ec
mov ecx, dword [ebp + 0x8e]
push 0x800
add ecx, 0x46
push ecx
jmp 0x4677ad
mov eax, dword [ebp + 0x8e]
push 0x104
add eax, 0x46
lea ecx, [esp + 0x12c]
push eax
push ecx
call edi
mov byte [esp + 0x22b], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46786c
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x46784f
add eax, 0x26
lea edx, [esp + 0x3a84]
push eax
push edx
call fcn.004628c0
mov ecx, dword [ebp + 0xc]
add esp, 8
lea eax, [esp + 0x3a84]
add ecx, 0x26
push 0x80
push eax
push ecx
call edi
mov edx, dword [ebp + 0xc]
mov byte [edx + 0xa5], 0
lea ebx, [esi + 0x2cf0]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0xc]
mov ecx, 0x800
sub ecx, eax
add edx, 0x26
push ecx
jmp 0x4678d1
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x4678b3
mov ecx, dword [ebp + 0x8e]
lea edx, [esp + 0x3a84]
add ecx, 0x46
push ecx
push edx
call fcn.004628c0
mov ecx, dword [ebp + 0x8e]
add esp, 8
lea eax, [esp + 0x3a84]
add ecx, 0x46
push 0x800
push eax
push ecx
call edi
mov edx, dword [ebp + 0x8e]
mov byte [edx + 0x845], 0
lea ebx, [esi + 0x2cf0]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 0x8e]
mov ecx, 0x800
sub ecx, eax
add edx, 0x46
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0x2cf0]
push eax
call edi
mov byte [esi + 0x34ef], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46797e
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [esi + 0x4e8e]
xor edx, edx
mov dword [esp + 0xa30], ecx
mov dx, word [esi + 0x4e8c]
test eax, eax
mov dword [esp + 0xa34], edx
je 0x467940
mov ecx, dword [eax + 0x12a]
mov dword [esp + 0xa38], ecx
mov edx, dword [eax + 2]
mov dword [esp + 0x123c], edx
mov dword [esp + 0x1240], 0
jmp 0x467964
mov eax, dword [ebp + 0x8e]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xa38], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x123c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1240], eax
push 0x800
lea ecx, [esp + 0x234]
push ebx
push ecx
call edi
mov byte [esp + 0xa2f], 0
jmp 0x4679d9
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x4e8e]
mov dword [esp + 0x11c], edx
mov ax, word [esi + 0x4e8c]
mov dword [esp + 0x120], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4679b4
mov ecx, dword [eax + 0x12a]
mov dword [esp + 0x124], ecx
jmp 0x4679c4
mov edx, dword [ebp + 0x8e]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x124], eax
push 0x104
lea ecx, [esp + 0x1c]
push ebx
push ecx
call edi
mov byte [esp + 0x11b], 0
mov eax, dword [ebp + 0x2c]
test eax, eax
jne 0x467fab
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x467fab
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x467fab
mov eax, dword [esi + 0x4568]
test eax, eax
jne 0x467a12
mov ecx, dword [esi + 0x456c]
test ecx, ecx
je 0x467ad8
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x467a30
mov edx, dword [esi + 0x4570]
lea eax, [esp + 0x22c]
push edx
push eax
call dword [esi + 0x456c]
jmp 0x467a3e
mov ecx, dword [esi + 0x4570]
lea edx, [esp + 0x18]
push ecx
push edx
call eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x467a91
lea eax, [esp + 0x230]
push 0x800
push eax
lea eax, [esi + 0x2cf0]
push eax
call edi
mov ecx, dword [esp + 0x52f0]
mov byte [esi + 0x34ef], 0
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x467a7f
mov ecx, dword [esp + 0xa38]
mov dword [eax + 0x12a], ecx
jmp 0x467ad8
mov edx, dword [ecx + 0x8e]
mov eax, dword [esp + 0xa38]
mov dword [edx + 0x18], eax
jmp 0x467ad8
lea ecx, [esp + 0x18]
push 0x104
lea eax, [esi + 0x2cf0]
push ecx
push eax
call edi
mov ecx, dword [esp + 0x52f0]
mov byte [esi + 0x2df3], 0
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x467ac8
mov edx, dword [esp + 0x124]
mov dword [eax + 0x12a], edx
jmp 0x467ad8
mov eax, dword [ecx + 0x8e]
mov ecx, dword [esp + 0x124]
mov dword [eax + 0x18], ecx
push 0
lea edx, [esp + 0x1248]
push 0
lea eax, [esp + 0x428c]
push edx
push eax
lea eax, [esi + 0x2cf0]
push eax
call fcn.0046d2b0
push 0
lea ecx, [esp + 0x125c]
push 0
lea edx, [esp + 0x42a0]
push ecx
lea eax, [esp + 0x1a64]
push edx
push eax
call fcn.0046d460
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x28
lea ecx, [esp + 0x1a44]
lea edx, [esp + 0x1244]
push ecx
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x1a44]
push 0x5c
push eax
call fcn.0046d180
test eax, eax
je 0x467b71
lea ecx, [esp + 0x1a44]
mov byte [eax], 0
push ecx
call edi
cmp eax, 0xffffffff
je 0x467b3a
lea edx, [esp + 0x1a44]
lea eax, [esp + 0x2244]
push edx
push eax
jmp 0x467b81
lea ecx, [esp + 0x1a44]
lea edx, [esp + 0x2244]
push ecx
push edx
call ebp
lea eax, [esp + 0x2244]
push 0x51cdf4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x1244]
lea edx, [esp + 0x1a44]
push ecx
push edx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x2244]
push eax
call ebx
lea ecx, [esp + 0x1a44]
mov edi, eax
push ecx
call ebx
cmp edi, eax
jge 0x467ca4
lea edx, [esp + 0x2244]
push edx
call ebx
lea ebp, [esp + eax + 0x2244]
lea eax, [esp + 0x2244]
push eax
call ebx
lea edi, [esp + eax + 0x1a44]
mov al, byte [esp + eax + 0x1a44]
test al, al
je 0x467c24
cmp al, 0x5c
je 0x467c24
mov byte [ebp], al
mov cl, byte [edi]
push ecx
inc ebp
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x467c15
mov dl, byte [edi + 1]
mov byte [ebp], dl
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x467bf9
lea eax, [esp + 0x2244]
push 0
push eax
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x467c7c
lea ecx, [esp + 0x2244]
push 0x51cdf4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x2244]
push edx
call ebx
mov edi, eax
lea eax, [esp + 0x1a44]
push eax
call ebx
cmp edi, eax
jl 0x467bcc
mov ebx, dword [esp + 0x52f0]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x467cab
mov eax, dword [esp + 0x52f0]
pop edi
pop esi
pop ebp
mov dword [eax + 0xc], 0
mov dword [eax + 0x8e], 0
mov eax, 0x1c
pop ebx
add esp, 0x52dc
ret
mov ebx, dword [esp + 0x52f0]
lea edi, [esi + 0x2cf0]
lea ecx, [esi + 0x350]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x467cf9
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x7e
call fcn.0046cff0
add esp, 8
push eax
push 0x31
call fcn.00461490
add esp, 0xc
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x8e], eax
pop edi
pop esi
pop ebp
mov eax, 0x31
pop ebx
add esp, 0x52dc
ret
lea eax, [esi + 0x34f0]
push edi
push eax
call ebp
push 0
push 0x80000080
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x467fab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
jne 0x467fab
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
cmp dword [eax + 0x28], ecx
jne 0x467f1a
push 0x7f00
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ebp, [esi + 0x2cf0]
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x467ed5
test bl, 0x10
jne 0x467ed5
mov eax, dword [esi + 0x3c]
test bl, 1
je 0x467e49
test eax, eax
push ebp
je 0x467da9
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x230]
jmp 0x467db8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x80
call fcn.0046cff0
add esp, 8
lea edx, [esp + 0x1248]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1244]
xor ecx, ecx
push eax
mov eax, dword [esi + 0x1dc]
cmp eax, 0xc8
push 0
setle cl
dec ecx
push 1
and ecx, 0xc
add ecx, 3
push ecx
push 8
call fcn.00469480
mov edi, eax
add esp, 0x14
cmp edi, 0x64
je 0x467e14
cmp edi, 5
jne 0x467e30
and ebx, 0xfffffffe
mov dword [esi + 8], 1
push ebx
push ebp
mov edi, 6
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x467eda
cmp edi, 6
jne 0x467eda
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x467eda
test eax, eax
push ebp
je 0x467e65
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
jmp 0x467e74
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x44
call fcn.0046cff0
add esp, 8
lea ecx, [esp + 0x1248]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esi + 0x1dc]
add esp, 0xc
xor eax, eax
cmp edi, 0xc8
setle al
dec eax
lea edx, [esp + 0x1244]
and eax, 0xc
push edx
push 0
add eax, 3
push 0
push eax
push 8
call fcn.00469480
mov edi, eax
add esp, 0x14
cmp edi, 0x64
je 0x467ece
cmp edi, 5
jne 0x467eda
mov dword [esi + 8], 1
mov edi, 6
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
cmp edi, 2
jne 0x467f0c
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
pop ebp
mov eax, 0x30
pop ebx
add esp, 0x52dc
ret
cmp edi, 7
jne 0x467f33
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
pop ebp
mov eax, 0x31
pop ebx
add esp, 0x52dc
ret
cmp edi, 0x65
jne 0x467fab
mov eax, dword [esi + 0x3c]
push ebp
test eax, eax
je 0x467f76
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x234]
push edx
call edi
push 0
push 0x8e
call fcn.0046cff0
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.0046afe0
add esp, 0x10
lea ecx, [esp + 0x230]
jmp 0x467fa1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x1c]
push edx
call edi
push 0
push 0x8e
call fcn.0046cff0
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0046afe0
add esp, 0x10
lea ecx, [esp + 0x18]
lea eax, [esi + 0x34f0]
push ecx
push eax
call edi
lea eax, [esi + 0x350]
push eax
call fcn.00468880
xor edi, edi
add esp, 4
cmp eax, edi
je 0x467fdb
mov ecx, dword [esp + 0x52f0]
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x8e], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x52dc
ret
mov ebp, dword [esp + 0x52f0]
xor ebx, ebx
mov edx, dword [ebp + 0x2c]
mov dword [esi + 0x3d30], edx
call fcn.004621e0
test eax, eax
jne 0x468006
pop edi
pop esi
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0x52dc
ret
cmp dword [esi + 0x1d4], edi
jne 0x46808a
push edi
call fcn.00468a30
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d1c], eax
je 0x468023
mov ebx, eax
mov eax, dword [esi + 0x4e4a]
mov ecx, dword [ebp + 0x14]
dec eax
cmp ecx, eax
jle 0x468038
mov ebx, 0x19
jmp 0x46807e
cmp ebx, edi
jne 0x46807e
cmp dword [esi + 0x4e7c], edi
jne 0x46805b
mov dword [esi + 0x3d08], edi
mov dword [esi + 0x3d0c], edi
call fcn.00462ce0
mov dword [esi + 0x3d1c], eax
cmp dword [esi + 0x3d1c], edi
jne 0x46807e
mov eax, dword [ebp + 0x14]
cdq
mov dword [esi + 0x3d08], eax
mov dword [esi + 0x3d0c], edx
call fcn.00462ce0
mov dword [esi + 0x3d1c], eax
mov eax, dword [esi + 0x3d1c]
cmp eax, ebx
jle 0x46808a
mov ebx, eax
mov al, byte [esi + 0x4e88]
mov dword [esi + 0x4eec], edi
test al, 1
je 0x4680a4
mov dword [esi + 0x4eec], 1
cmp word [esi + 0x4e8a], 0x13
jbe 0x4680b8
mov ebx, 0x2a
jmp 0x46882a
cmp ebx, edi
jne 0x46882a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], 1
cmp dword [esi + 0x4ee4], edi
je 0x46829d
mov eax, dword [esi + 0x4ee8]
xor ecx, ecx
mov cx, word [esi + 0x4ea2]
cmp ecx, eax
je 0x46829d
call fcn.004621a0
mov eax, dword [esi + 0x4e3a]
cmp eax, 0xffffffff
jne 0x468133
cmp dword [esi + 0x40], edi
je 0x46811d
xor edx, edx
push esi
mov dx, word [esi + 0x4ea2]
push edi
inc edx
push edx
call fcn.0046b9e0
add esp, 0xc
jmp 0x46816e
xor eax, eax
push 0x526974
mov ax, word [esi + 0x4ea2]
push edi
inc eax
push eax
push 1
push edi
jmp 0x468166
cmp dword [esi + 0x40], edi
je 0x468150
xor ecx, ecx
inc eax
mov cx, word [esi + 0x4ea2]
push esi
inc ecx
push eax
push ecx
call fcn.0046b9e0
add esp, 0xc
jmp 0x46816e
xor edx, edx
inc eax
mov dx, word [esi + 0x4ea2]
push 0x526974
inc edx
push eax
push edx
push 1
push 1
call fcn.00469480
add esp, 0x14
cmp eax, 1
jne 0x468263
cmp dword [esi + 0x40], edi
je 0x468180
mov dword [esp + 0x10], edi
call fcn.00462250
test eax, eax
jne 0x46824b
call fcn.004621e0
test eax, eax
je 0x46824b
push 0
push esi
call fcn.0046bbf0
add esp, 4
push edx
push eax
mov eax, dword [esi + 0x3d10]
push eax
call fcn.0046e720
mov edx, dword [esi + 0x3d10]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edi, [esi + 0x45cc]
push 0
push ecx
push 0x1e
push edi
push edx
call ebp
cmp eax, 1
jne 0x46824b
cmp dword [esp + 0x14], 0x1e
jne 0x46824b
cmp dword [edi], 0x4034b50
jne 0x46824b
mov eax, dword [esp + 0x52f0]
mov edx, dword [esi + 0x4ed0]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.00462300
add esp, 0xc
test eax, eax
je 0x468244
lea edi, [esi + 0x16000]
lea ecx, [esp + 0x1244]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edx, edx
mov dx, word [esi + 0x45e6]
push edx
call fcn.00462000
add esp, 4
lea eax, [esp + 0x1244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x46826d
jmp 0x468250
mov ebx, 3
jmp 0x468250
mov ebx, 0x1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x468317
xor edi, edi
jmp 0x4680ce
mov ebx, 0x30
jmp 0x468317
xor edx, edx
xor ecx, ecx
mov dx, word [esi + 0x45e8]
mov cx, word [esi + 0x4ea2]
push edx
push esi
mov dword [esi + 0x4ee8], ecx
call fcn.004620a0
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 3
jmp 0x468317
push esi
call fcn.0046bbf0
push 0
push edx
push eax
mov eax, dword [esi + 0x3d10]
push eax
call fcn.0046e720
mov edx, dword [esi + 0x3d10]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edi, [esi + 0x45cc]
push 0
push ecx
push 0x1e
push edi
push edx
call ebp
test eax, eax
je 0x4682db
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4682e0
mov ebx, 3
cmp dword [edi], 0x4034b50
jne 0x468312
test ebx, ebx
jne 0x468317
xor eax, eax
mov ax, word [esi + 0x45e6]
push eax
call fcn.00462000
xor ecx, ecx
mov cx, word [esi + 0x45e8]
push ecx
push esi
call fcn.004620a0
add esp, 0xc
test eax, eax
jne 0x468317
mov ebx, 3
call fcn.004621a0
xor edi, edi
cmp ebx, edi
jne 0x46882a
lea eax, [esi + 0x350]
push eax
call fcn.00465000
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d1c], eax
je 0x468392
mov eax, dword [esp + 0x52f0]
mov dword [eax + 0xc], edi
mov dword [eax + 0x8e], edi
mov eax, dword [esi + 0x14f90]
cmp eax, edi
je 0x468368
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x468381
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x15ff4], edi
mov eax, dword [esi + 0x3d1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x52dc
ret
cmp dword [esi + 0x3d30], edi
jne 0x4684e2
cmp dword [esi + 0x4c], edi
je 0x4683d9
lea edi, [esi + 0x2cf0]
push edi
push 0
push 0x84
call fcn.0046cff0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esi + 0x3d4c]
push eax
push edx
call ebp
add esp, 0xc
push edi
push 2
push 0x93
jmp 0x468461
cmp dword [esi + 0x54], edi
je 0x46840f
push 0
push 0x95
call fcn.0046cff0
add esp, 8
lea ecx, [esp + 0x2a44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2a44]
push eax
jmp 0x4685a0
mov eax, dword [esi + 0x3c]
cmp eax, edi
lea eax, [esi + 0x2cf0]
push eax
je 0x468484
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
push eax
push 0
push 0x48
call fcn.0046cff0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esi + 0x3d4c]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x230]
push edx
push 2
push 0x91
call fcn.0046cff0
add esp, 8
push eax
lea eax, [esp + 0x2a4c]
push eax
call ebp
add esp, 0xc
lea eax, [esp + 0x2a44]
push eax
jmp 0x4685a0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x18]
push edx
push 0
push 0x48
call fcn.0046cff0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea eax, [esi + 0x3d4c]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 2
push 0x91
call fcn.0046cff0
add esp, 8
lea edx, [esp + 0x2a48]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x2a44]
push eax
jmp 0x4685a0
mov eax, dword [esi + 0x3c]
cmp eax, edi
lea eax, [esi + 0x2cf0]
push eax
je 0x468547
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x230]
push edx
push 0
push 0x49
call fcn.0046cff0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea eax, [esi + 0x3d4c]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x230]
push ecx
push 2
push 0x92
call fcn.0046cff0
add esp, 8
lea edx, [esp + 0x2a48]
push eax
push edx
jmp 0x468593
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x49
call fcn.0046cff0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esi + 0x3d4c]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 2
push 0x92
call fcn.0046cff0
add esp, 8
lea ecx, [esp + 0x2a48]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x2a44]
push edx
call fcn.0046ac60
mov ecx, dword [esp + 0x52f4]
add esp, 4
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4685c7
mov eax, dword [eax + 0x12a]
and eax, 0x27
mov dword [esi + 0x3cf0], eax
jmp 0x4685d9
mov ecx, dword [ecx + 0x8e]
mov edx, dword [ecx + 0x18]
and edx, 0x27
mov dword [esi + 0x3cf0], edx
mov eax, dword [esi + 0x4568]
test eax, eax
jne 0x4685ed
mov eax, dword [esi + 0x456c]
test eax, eax
je 0x468632
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x468614
mov ax, word [esp + 0xa30]
mov word [esi + 0x45d8], ax
mov cx, word [esp + 0xa34]
mov word [esi + 0x45d6], cx
jmp 0x468632
mov dx, word [esp + 0x11c]
mov word [esi + 0x45d8], dx
mov ax, word [esp + 0x120]
mov word [esi + 0x45d6], ax
lea edi, [esi + 0x2cf0]
push edi
call fcn.0046d230
add esp, 4
test eax, eax
jne 0x4687fd
mov eax, dword [esp + 0x52f4]
mov ebx, dword [esp + 0x52f0]
test eax, eax
je 0x4686e5
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x46866d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4686e5
push 0
push 0x80
push 3
push 0
lea edi, [esi + 0x34f0]
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4686ba
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x4686e5
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
mov ebx, 0xb
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov dword [esi + 0x3d1c], ebx
jmp 0x46882a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00469b30
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x45d8]
mov dx, word [esi + 0x45d6]
shl ecx, 0x10
or ecx, edx
add esp, 4
cmp eax, ecx
jae 0x468698
lea eax, [esi + 0x34f0]
push eax
call fcn.00464d60
add esp, 4
mov dword [esi + 0x3d1c], eax
test eax, eax
je 0x4687e3
mov ecx, dword [esi + 0x4eec]
test ecx, ecx
je 0x4687df
cmp eax, 0x2c
jne 0x4687df
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4687c6
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebx, eax
mov eax, dword [esi + 0x3c]
test eax, eax
lea eax, [esi + 0x2cf0]
push eax
je 0x46875f
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x230]
jmp 0x46876e
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x18]
push edx
push 0
push 0x46
call fcn.0046cff0
add esp, 8
push eax
lea eax, [esp + 0x124c]
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x1244]
xor ebp, ebp
push ecx
push ebp
push ebp
push 1
push 9
call fcn.00469480
add esp, 0x14
mov edi, eax
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x52f0]
cmp edi, 2
mov dword [eax + 0xc], ebp
mov dword [eax + 0x8e], ebp
jne 0x4687d8
mov ebx, 0x2c
jmp 0x46882a
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov ebx, 0x31
jmp 0x46882a
mov ebx, eax
jmp 0x46882a
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov ebx, dword [esi + 0x3d1c]
jmp 0x46882a
mov ebp, dword [esi + 0x3cf0]
push edi
or ebp, 0x10
mov dword [esi + 0x3cf0], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebp
cmp eax, 1
jle 0x46882a
push edi
call ebp
mov byte [eax + esi + 0x2cef], 0
call fcn.0046e570
call fcn.00465070
mov eax, dword [esp + 0x52f0]
xor edi, edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x8e], edi
mov eax, dword [esi + 0x14f90]
cmp eax, edi
je 0x46885a
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x468873
push eax
call fcn.004ad74d
add esp, 4
mov dword [esi + 0x15ff4], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x52dc
ret