Function at 0x480ba0
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.005c0d00
mov al, byte [0x6bb520]
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 [0x6c24b8]
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 0x480bf2
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x52dc
ret
cmp dword [esi + 0x3c], edi
je 0x480c02
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 0x480c5c
cmp dword [esi + 0x4c], edi
jne 0x480c5c
cmp dword [esi + 0x54], edi
jne 0x480c5c
mov edx, dword [ebp + 0x18]
lea eax, [esp + 0x3284]
push edx
push eax
call fcn.00484a20
lea ecx, [esp + 0x328c]
push ecx
call fcn.004865d0
add esp, 0xc
test eax, eax
jne 0x480c5c
lea edx, [esp + 0x3284]
push 0x683060
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 0x1d4]
mov ebx, 0x2f
cmp eax, edi
jne 0x480c9d
lea eax, [esp + 0x4a84]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x8e], eax
mov eax, dword [esi + 0x1d4]
cmp eax, edi
jne 0x480c9d
push ebp
call fcn.0047e520
add esp, 4
test eax, eax
jne 0x481d7a
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 0x480ce6
cmp cl, 0x2f
jne 0x480cdd
mov byte [eax], 0x5c
push eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x480cd5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x480d24
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x480d11
add eax, 0x26
push 0x800
push eax
lea edx, [esp + 0xa44]
push edx
call edi
mov byte [esp + 0x123b], 0
jmp 0x480d5d
add eax, 0x26
push 0x104
push eax
lea eax, [esp + 0x130]
push eax
jmp 0x480d53
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x480d3c
mov ecx, dword [ebp + 0x8e]
push 0x800
add ecx, 0x46
push ecx
jmp 0x480cfd
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 0x480dbc
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x480d9f
add eax, 0x26
lea edx, [esp + 0x3a84]
push eax
push edx
call fcn.0047c850
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 0x480e21
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x480e03
mov ecx, dword [ebp + 0x8e]
lea edx, [esp + 0x3a84]
add ecx, 0x46
push ecx
push edx
call fcn.0047c850
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 0x480ece
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 0x480e90
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 0x480eb4
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 0x480f29
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 0x480f04
mov ecx, dword [eax + 0x12a]
mov dword [esp + 0x124], ecx
jmp 0x480f14
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 0x4814fb
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x4814fb
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4814fb
mov eax, dword [esi + 0x4568]
test eax, eax
jne 0x480f62
mov ecx, dword [esi + 0x456c]
test ecx, ecx
je 0x481028
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x480f80
mov edx, dword [esi + 0x4570]
lea eax, [esp + 0x22c]
push edx
push eax
call dword [esi + 0x456c]
jmp 0x480f8e
mov ecx, dword [esi + 0x4570]
lea edx, [esp + 0x18]
push ecx
push edx
call eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x480fe1
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 0x480fcf
mov ecx, dword [esp + 0xa38]
mov dword [eax + 0x12a], ecx
jmp 0x481028
mov edx, dword [ecx + 0x8e]
mov eax, dword [esp + 0xa38]
mov dword [edx + 0x18], eax
jmp 0x481028
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 0x481018
mov edx, dword [esp + 0x124]
mov dword [eax + 0x12a], edx
jmp 0x481028
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.00486610
push 0
lea ecx, [esp + 0x125c]
push 0
lea edx, [esp + 0x42a0]
push ecx
lea eax, [esp + 0x1a64]
push edx
push eax
call fcn.004867c0
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.00486590
test eax, eax
je 0x4810c1
lea ecx, [esp + 0x1a44]
mov byte [eax], 0
push ecx
call edi
cmp eax, 0xffffffff
je 0x48108a
lea edx, [esp + 0x1a44]
lea eax, [esp + 0x2244]
push edx
push eax
jmp 0x4810d1
lea ecx, [esp + 0x1a44]
lea edx, [esp + 0x2244]
push ecx
push edx
call ebp
lea eax, [esp + 0x2244]
push 0x683060
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 0x4811f4
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 0x481174
cmp al, 0x5c
je 0x481174
mov byte [ebp], al
mov cl, byte [edi]
push ecx
inc ebp
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x481165
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 0x481149
lea eax, [esp + 0x2244]
push 0
push eax
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4811cc
lea ecx, [esp + 0x2244]
push 0x683060
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 0x48111c
mov ebx, dword [esp + 0x52f0]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4811fb
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 0x481249
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x7e
call fcn.00486400
add esp, 8
push eax
push 0x31
call fcn.0047b420
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 SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4814fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4814fb
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
cmp dword [eax + 0x28], ecx
jne 0x48146a
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 0x481425
test bl, 0x10
jne 0x481425
mov eax, dword [esi + 0x3c]
test bl, 1
je 0x481399
test eax, eax
push ebp
je 0x4812f9
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x230]
jmp 0x481308
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.00486400
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.004829d0
mov edi, eax
add esp, 0x14
cmp edi, 0x64
je 0x481364
cmp edi, 5
jne 0x481380
and ebx, 0xfffffffe
mov dword [esi + 8], 1
push ebx
push ebp
mov edi, 6
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x48142a
cmp edi, 6
jne 0x48142a
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x48142a
test eax, eax
push ebp
je 0x4813b5
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x230]
jmp 0x4813c4
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.00486400
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.004829d0
mov edi, eax
add esp, 0x14
cmp edi, 0x64
je 0x48141e
cmp edi, 5
jne 0x48142a
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 0x48145c
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 0x481483
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 0x4814fb
mov eax, dword [esi + 0x3c]
push ebp
test eax, eax
je 0x4814c6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x234]
push edx
call edi
push 0
push 0x8e
call fcn.00486400
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.00484530
add esp, 0x10
lea ecx, [esp + 0x230]
jmp 0x4814f1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x1c]
push edx
call edi
push 0
push 0x8e
call fcn.00486400
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00484530
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.00481dd0
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48152b
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.0047c170
test eax, eax
jne 0x481556
pop edi
pop esi
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0x52dc
ret
cmp dword [esi + 0x1d4], edi
jne 0x4815da
push edi
call fcn.00481f80
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d1c], eax
je 0x481573
mov ebx, eax
mov eax, dword [esi + 0x4e4a]
mov ecx, dword [ebp + 0x14]
dec eax
cmp ecx, eax
jle 0x481588
mov ebx, 0x19
jmp 0x4815ce
cmp ebx, edi
jne 0x4815ce
cmp dword [esi + 0x4e7c], edi
jne 0x4815ab
mov dword [esi + 0x3d08], edi
mov dword [esi + 0x3d0c], edi
call fcn.0047cbd0
mov dword [esi + 0x3d1c], eax
cmp dword [esi + 0x3d1c], edi
jne 0x4815ce
mov eax, dword [ebp + 0x14]
cdq
mov dword [esi + 0x3d08], eax
mov dword [esi + 0x3d0c], edx
call fcn.0047cbd0
mov dword [esi + 0x3d1c], eax
mov eax, dword [esi + 0x3d1c]
cmp eax, ebx
jle 0x4815da
mov ebx, eax
mov al, byte [esi + 0x4e88]
mov dword [esi + 0x4eec], edi
test al, 1
je 0x4815f4
mov dword [esi + 0x4eec], 1
cmp word [esi + 0x4e8a], 0x13
jbe 0x481608
mov ebx, 0x2a
jmp 0x481d7a
cmp ebx, edi
jne 0x481d7a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], 1
cmp dword [esi + 0x4ee4], edi
je 0x4817ed
mov eax, dword [esi + 0x4ee8]
xor ecx, ecx
mov cx, word [esi + 0x4ea2]
cmp ecx, eax
je 0x4817ed
call fcn.0047c130
mov eax, dword [esi + 0x4e3a]
cmp eax, 0xffffffff
jne 0x481683
cmp dword [esi + 0x40], edi
je 0x48166d
xor edx, edx
push esi
mov dx, word [esi + 0x4ea2]
push edi
inc edx
push edx
call fcn.00484df0
add esp, 0xc
jmp 0x4816be
xor eax, eax
push 0x6bb520
mov ax, word [esi + 0x4ea2]
push edi
inc eax
push eax
push 1
push edi
jmp 0x4816b6
cmp dword [esi + 0x40], edi
je 0x4816a0
xor ecx, ecx
inc eax
mov cx, word [esi + 0x4ea2]
push esi
inc ecx
push eax
push ecx
call fcn.00484df0
add esp, 0xc
jmp 0x4816be
xor edx, edx
inc eax
mov dx, word [esi + 0x4ea2]
push 0x6bb520
inc edx
push eax
push edx
push 1
push 1
call fcn.004829d0
add esp, 0x14
cmp eax, 1
jne 0x4817b3
cmp dword [esi + 0x40], edi
je 0x4816d0
mov dword [esp + 0x10], edi
call fcn.0047c1e0
test eax, eax
jne 0x48179b
call fcn.0047c170
test eax, eax
je 0x48179b
push 0
push esi
call fcn.00485000
add esp, 4
push edx
push eax
mov eax, dword [esi + 0x3d10]
push eax
call fcn.00487a80
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 0x48179b
cmp dword [esp + 0x14], 0x1e
jne 0x48179b
cmp dword [edi], 0x4034b50
jne 0x48179b
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.0047c290
add esp, 0xc
test eax, eax
je 0x481794
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.0047bf90
add esp, 4
lea eax, [esp + 0x1244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4817bd
jmp 0x4817a0
mov ebx, 3
jmp 0x4817a0
mov ebx, 0x1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x481867
xor edi, edi
jmp 0x48161e
mov ebx, 0x30
jmp 0x481867
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.0047c030
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 3
jmp 0x481867
push esi
call fcn.00485000
push 0
push edx
push eax
mov eax, dword [esi + 0x3d10]
push eax
call fcn.00487a80
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 0x48182b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x481830
mov ebx, 3
cmp dword [edi], 0x4034b50
jne 0x481862
test ebx, ebx
jne 0x481867
xor eax, eax
mov ax, word [esi + 0x45e6]
push eax
call fcn.0047bf90
xor ecx, ecx
mov cx, word [esi + 0x45e8]
push ecx
push esi
call fcn.0047c030
add esp, 0xc
test eax, eax
jne 0x481867
mov ebx, 3
call fcn.0047c130
xor edi, edi
cmp ebx, edi
jne 0x481d7a
lea eax, [esi + 0x350]
push eax
call fcn.0047eef0
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d1c], eax
je 0x4818e2
mov eax, dword [esp + 0x52f0]
mov dword [eax + 0xc], edi
mov dword [eax + 0x8e], edi
mov eax, dword [esi + 0x14f90]
cmp eax, edi
je 0x4818b8
push eax
call fcn.005c0ac9
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x4818d1
push eax
call fcn.005c0ac9
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 0x481a32
cmp dword [esi + 0x4c], edi
je 0x481929
lea edi, [esi + 0x2cf0]
push edi
push 0
push 0x84
call fcn.00486400
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 0x4819b1
cmp dword [esi + 0x54], edi
je 0x48195f
push 0
push 0x95
call fcn.00486400
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 0x481af0
mov eax, dword [esi + 0x3c]
cmp eax, edi
lea eax, [esi + 0x2cf0]
push eax
je 0x4819d4
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.00486400
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.00486400
add esp, 8
push eax
lea eax, [esp + 0x2a4c]
push eax
call ebp
add esp, 0xc
lea eax, [esp + 0x2a44]
push eax
jmp 0x481af0
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.00486400
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.00486400
add esp, 8
lea edx, [esp + 0x2a48]
push eax
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x2a44]
push eax
jmp 0x481af0
mov eax, dword [esi + 0x3c]
cmp eax, edi
lea eax, [esi + 0x2cf0]
push eax
je 0x481a97
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.00486400
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.00486400
add esp, 8
lea edx, [esp + 0x2a48]
push eax
push edx
jmp 0x481ae3
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.00486400
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.00486400
add esp, 8
lea ecx, [esp + 0x2a48]
push eax
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x2a44]
push edx
call fcn.004841b0
mov ecx, dword [esp + 0x52f4]
add esp, 4
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x481b17
mov eax, dword [eax + 0x12a]
and eax, 0x27
mov dword [esi + 0x3cf0], eax
jmp 0x481b29
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 0x481b3d
mov eax, dword [esi + 0x456c]
test eax, eax
je 0x481b82
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x481b64
mov ax, word [esp + 0xa30]
mov word [esi + 0x45d8], ax
mov cx, word [esp + 0xa34]
mov word [esi + 0x45d6], cx
jmp 0x481b82
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.004865d0
add esp, 4
test eax, eax
jne 0x481d4d
mov eax, dword [esp + 0x52f4]
mov ebx, dword [esp + 0x52f0]
test eax, eax
je 0x481c35
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x481bbd
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x481c35
push 0
push 0x80
push 3
push 0
lea edi, [esi + 0x34f0]
push 3
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x481c0a
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x481c35
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 0x481d7a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00483080
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 0x481be8
lea eax, [esi + 0x34f0]
push eax
call fcn.0047ec50
add esp, 4
mov dword [esi + 0x3d1c], eax
test eax, eax
je 0x481d33
mov ecx, dword [esi + 0x4eec]
test ecx, ecx
je 0x481d2f
cmp eax, 0x2c
jne 0x481d2f
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x481d16
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 0x481caf
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x230]
jmp 0x481cbe
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.00486400
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.004829d0
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 0x481d28
mov ebx, 0x2c
jmp 0x481d7a
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov ebx, 0x31
jmp 0x481d7a
mov ebx, eax
jmp 0x481d7a
mov eax, dword [esp + 0x52f0]
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov ebx, dword [esi + 0x3d1c]
jmp 0x481d7a
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 0x481d7a
push edi
call ebp
mov byte [eax + esi + 0x2cef], 0
call fcn.004878d0
call fcn.0047ef60
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 0x481daa
push eax
call fcn.005c0ac9
add esp, 4
mov dword [esi + 0x14f90], edi
mov eax, dword [esi + 0x15ff4]
cmp eax, edi
je 0x481dc3
push eax
call fcn.005c0ac9
add esp, 4
mov dword [esi + 0x15ff4], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x52dc
ret