Function at 0x1002dfe0
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, 0x42c4
call fcn.10039ee0
mov al, byte [0x1006161c]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x1a2c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1a2d]
rep stosd dword es:[edi], eax
mov ecx, dword [0x10063c04]
stosw word es:[edi], ax
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1002e032
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x42c4
ret
mov edi, dword [esp + 0x42d8]
mov dword [esi + 0x3cf0], ebx
mov dword [esi + 0x3cf4], ebx
cmp dword [edi + 0x2c], ebx
jne 0x1002e08c
cmp dword [esi + 0x44], ebx
jne 0x1002e08c
cmp dword [esi + 0x4c], ebx
jne 0x1002e08c
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x1a2c]
push edx
push eax
call fcn.10031950
lea ecx, [esp + 0x1a34]
push ecx
call fcn.1001fb50
add esp, 0xc
test eax, eax
jne 0x1002e08c
lea edx, [esp + 0x1a2c]
push 0x100596b4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 0x1cc]
mov ebp, 0x2f
cmp eax, ebx
jne 0x1002e0cd
lea eax, [esp + 0x3a6c]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x8e], eax
mov eax, dword [esi + 0x1cc]
cmp eax, ebx
jne 0x1002e0cd
push edi
call fcn.1002bb20
add esp, 4
test eax, eax
jne 0x1002edee
mov edi, dword [esp + 0x42d8]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1a2c]
lea eax, [esi + 0x2ce8]
push ecx
push eax
call ebp
mov eax, dword [edi + 0x8e]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
add eax, 0x46
mov cl, byte [eax]
test cl, cl
je 0x1002e10a
cmp cl, 0x2f
jne 0x1002e101
mov byte [eax], 0x5c
push eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x1002e0f9
mov eax, dword [edi + 0xc]
push 0x104
test eax, eax
je 0x1002e124
add eax, 0x26
lea edx, [esp + 0x12c]
push eax
push edx
jmp 0x1002e136
mov eax, dword [edi + 0x8e]
lea ecx, [esp + 0x12c]
add eax, 0x46
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1002e19a
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x1002e16f
add eax, 0x26
lea edx, [esp + 0x2a6c]
push eax
push edx
call fcn.10029de0
mov ecx, dword [edi + 0xc]
add esp, 8
lea eax, [esp + 0x2a6c]
add ecx, 0x26
push eax
push ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + 0x2ce8]
push ebp
call ebx
mov edx, 0x800
sub edx, eax
mov eax, dword [edi + 0xc]
add eax, 0x26
push edx
push eax
push ebp
call ebx
lea ecx, [eax + esi + 0x2ce8]
push ecx
jmp 0x1002e1fb
mov eax, dword [edi + 0x30]
test eax, eax
je 0x1002e1cf
mov edx, dword [edi + 0x8e]
lea eax, [esp + 0x2a6c]
add edx, 0x46
push edx
push eax
call fcn.10029de0
mov edx, dword [edi + 0x8e]
add esp, 8
lea ecx, [esp + 0x2a6c]
add edx, 0x46
push ecx
push edx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + 0x2ce8]
push ebp
call ebx
mov edx, dword [edi + 0x8e]
mov ecx, 0x800
sub ecx, eax
add edx, 0x46
push ecx
push edx
push ebp
call ebx
lea eax, [eax + esi + 0x2ce8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 0xc]
xor ecx, ecx
mov cx, word [esi + 0x4e82]
xor edx, edx
mov dword [esp + 0x11c], ecx
mov dx, word [esi + 0x4e80]
test eax, eax
mov dword [esp + 0x120], edx
je 0x1002e237
mov eax, dword [eax + 0x12a]
mov dword [esp + 0x124], eax
jmp 0x1002e247
mov ecx, dword [edi + 0x8e]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x124], edx
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x1002e73d
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x1002e73d
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x1002e73d
mov eax, dword [esi + 0x4560]
test eax, eax
je 0x1002e2cf
mov ecx, dword [esi + 0x4564]
lea edx, [esp + 0x18]
push ecx
push edx
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x2ce8]
push eax
call ebp
mov ecx, dword [esp + 0x42d8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1002e2bd
mov ecx, dword [esp + 0x124]
mov dword [eax + 0x12a], ecx
jmp 0x1002e2d5
mov edx, dword [ecx + 0x8e]
mov eax, dword [esp + 0x124]
mov dword [edx + 0x18], eax
jmp 0x1002e2d5
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [esp + 0x230]
push 0
lea edx, [esp + 0x3274]
push ecx
lea eax, [esi + 0x2ce8]
push edx
push eax
call fcn.10033490
push 0
lea eax, [esp + 0x244]
push 0
lea ecx, [esp + 0x3288]
push eax
lea edx, [esp + 0x124c]
push ecx
push edx
call fcn.10033640
add esp, 0x28
lea eax, [esp + 0x122c]
lea ecx, [esp + 0x22c]
push eax
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x122c]
push 0x5c
push edx
call fcn.10033450
test eax, eax
je 0x1002e368
mov byte [eax], 0
lea eax, [esp + 0x122c]
push eax
call edi
cmp eax, 0xffffffff
je 0x1002e331
lea ecx, [esp + 0x122c]
lea edx, [esp + 0xa2c]
push ecx
push edx
jmp 0x1002e378
lea eax, [esp + 0x122c]
lea ecx, [esp + 0xa2c]
push eax
push ecx
call ebp
lea edx, [esp + 0xa2c]
push 0x100596b4
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x122c]
push eax
push ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0xa2c]
push edx
call ebx
mov edi, eax
lea eax, [esp + 0x122c]
push eax
call ebx
cmp edi, eax
jge 0x1002e4ba
lea ecx, [esp + 0xa2c]
push ecx
call ebx
lea edx, [esp + 0xa2c]
lea ebp, [esp + eax + 0xa2c]
push edx
call ebx
lea edi, [esp + eax + 0x122c]
mov al, byte [esp + eax + 0x122c]
test al, al
je 0x1002e41b
cmp al, 0x5c
je 0x1002e41b
mov byte [ebp], al
mov al, byte [edi]
push eax
inc ebp
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x1002e40c
mov cl, byte [edi + 1]
mov byte [ebp], cl
inc ebp
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
mov al, byte [edi]
test al, al
jne 0x1002e3f0
lea edx, [esp + 0xa2c]
push 0
push edx
mov byte [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1002e473
lea eax, [esp + 0xa2c]
push 0x100596b4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0xa2c]
push ecx
call ebx
lea edx, [esp + 0x122c]
mov edi, eax
push edx
call ebx
cmp edi, eax
jl 0x1002e3c3
mov ebx, dword [esp + 0x42d8]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1002e4c1
mov eax, dword [esp + 0x42d8]
push 0x1000
push str.Debug_1___Could_Not_Make_Subdir
mov dword [eax + 0xc], 0
mov dword [eax + 0x8e], 0
lea eax, [esp + 0xa34]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 0x42c4
ret
mov ebx, dword [esp + 0x42d8]
lea edi, [esi + 0x2ce8]
lea ecx, [esi + 0x348]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002e50f
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x7e
call fcn.10033300
add esp, 8
push eax
push 0x31
call fcn.10028a10
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, 0x42c4
ret
lea eax, [esi + 0x34e8]
push edi
push eax
call ebp
push 0
push 0x80000080
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x1002e73d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
jne 0x1002e73d
mov eax, dword [esp + 0x42d8]
xor ecx, ecx
cmp dword [eax + 0x28], ecx
jne 0x1002e6e9
push 0x7f00
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ebp, [esi + 0x2ce8]
mov dword [esp + 0x10], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002e6a4
test bl, 0x10
jne 0x1002e6a4
test bl, 1
push ebp
je 0x1002e637
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.10033300
add esp, 8
lea edx, [esp + 0x230]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x238]
xor ecx, ecx
push eax
mov eax, dword [esi + 0x1d4]
cmp eax, 0xc8
push 0
setle cl
dec ecx
push 1
and ecx, 0xc
add ecx, 3
push ecx
push 8
call fcn.1002fa40
mov edi, eax
add esp, 0x20
cmp edi, 0x64
je 0x1002e609
cmp edi, 5
jne 0x1002e625
and ebx, 0xfffffffe
mov dword [esi + 8], 1
push ebx
push ebp
mov edi, 6
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1002e6a9
cmp edi, 6
jne 0x1002e6a9
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x1002e6a9
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.10033300
add esp, 8
lea ecx, [esp + 0x230]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esi + 0x1d4]
xor eax, eax
cmp edi, 0xc8
lea edx, [esp + 0x238]
setle al
dec eax
push edx
and eax, 0xc
push 0
add eax, 3
push 0
push eax
push 8
call fcn.1002fa40
mov edi, eax
add esp, 0x20
cmp edi, 0x64
je 0x1002e69d
cmp edi, 5
jne 0x1002e6a9
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 0x1002e6db
mov eax, dword [esp + 0x42d8]
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, 0x42c4
ret
cmp edi, 7
jne 0x1002e702
mov eax, dword [esp + 0x42d8]
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, 0x42c4
ret
cmp edi, 0x65
jne 0x1002e73d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x18]
push ebp
push edx
call edi
push 0
push 0x8e
call fcn.10033300
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10031460
add esp, 0x10
lea ecx, [esp + 0x18]
lea eax, [esi + 0x34e8]
push ecx
push eax
call edi
lea eax, [esi + 0x348]
push eax
call fcn.1002ee40
xor edi, edi
add esp, 4
cmp eax, edi
je 0x1002e76d
mov ecx, dword [esp + 0x42d8]
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x8e], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c4
ret
mov ebx, dword [esp + 0x42d8]
xor ebp, ebp
mov edx, dword [ebx + 0x2c]
mov dword [esi + 0x3d28], edx
call fcn.10029750
test eax, eax
jne 0x1002e798
pop edi
pop esi
pop ebp
mov eax, 0x1d
pop ebx
add esp, 0x42c4
ret
cmp dword [esi + 0x1cc], edi
jne 0x1002e81c
push edi
call fcn.1002eff0
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d14], eax
je 0x1002e7b5
mov ebp, eax
mov eax, dword [esi + 0x4e3e]
mov ecx, dword [ebx + 0x14]
dec eax
cmp ecx, eax
jle 0x1002e7ca
mov ebp, 0x19
jmp 0x1002e810
cmp ebp, edi
jne 0x1002e810
cmp dword [esi + 0x4e70], edi
jne 0x1002e7ed
mov dword [esi + 0x3d00], edi
mov dword [esi + 0x3d04], edi
call fcn.1002a150
mov dword [esi + 0x3d14], eax
cmp dword [esi + 0x3d14], edi
jne 0x1002e810
mov eax, dword [ebx + 0x14]
cdq
mov dword [esi + 0x3d00], eax
mov dword [esi + 0x3d04], edx
call fcn.1002a150
mov dword [esi + 0x3d14], eax
mov eax, dword [esi + 0x3d14]
cmp eax, ebp
jle 0x1002e81c
mov ebp, eax
mov al, byte [esi + 0x4e7c]
mov dword [esi + 0x4ee0], edi
test al, 1
je 0x1002e836
mov dword [esi + 0x4ee0], 1
cmp word [esi + 0x4e7e], 0x13
jbe 0x1002e84a
mov ebp, 0x2a
jmp 0x1002ede9
cmp ebp, edi
jne 0x1002ede9
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], 1
cmp dword [esi + 0x4ed8], edi
je 0x1002ea2f
mov eax, dword [esi + 0x4edc]
xor ecx, ecx
mov cx, word [esi + 0x4e96]
cmp ecx, eax
je 0x1002ea2f
call fcn.10029710
mov eax, dword [esi + 0x4e2e]
cmp eax, 0xffffffff
jne 0x1002e8c5
cmp dword [esi + 0x38], edi
je 0x1002e8af
xor edx, edx
push esi
mov dx, word [esi + 0x4e96]
push edi
inc edx
push edx
call fcn.10031d20
add esp, 0xc
jmp 0x1002e900
xor eax, eax
push 0x1006161c
mov ax, word [esi + 0x4e96]
push edi
inc eax
push eax
push 1
push edi
jmp 0x1002e8f8
cmp dword [esi + 0x38], edi
je 0x1002e8e2
xor ecx, ecx
inc eax
mov cx, word [esi + 0x4e96]
push esi
inc ecx
push eax
push ecx
call fcn.10031d20
add esp, 0xc
jmp 0x1002e900
xor edx, edx
inc eax
mov dx, word [esi + 0x4e96]
push 0x1006161c
inc edx
push eax
push edx
push 1
push 1
call fcn.1002fa40
add esp, 0x14
cmp eax, 1
jne 0x1002e9f5
cmp dword [esi + 0x38], edi
je 0x1002e912
mov dword [esp + 0x10], edi
call fcn.100297a0
test eax, eax
jne 0x1002e9dd
call fcn.10029750
test eax, eax
je 0x1002e9dd
push 0
push esi
call fcn.10031f30
add esp, 4
push edx
push eax
mov eax, dword [esi + 0x3d08]
push eax
call fcn.100348d0
mov edx, dword [esi + 0x3d08]
add esp, 0x10
lea ecx, [esp + 0x14]
lea edi, [esi + 0x45c0]
push 0
push ecx
push 0x1e
push edi
push edx
call ebx
cmp eax, 1
jne 0x1002e9dd
cmp dword [esp + 0x14], 0x1e
jne 0x1002e9dd
cmp dword [edi], 0x4034b50
jne 0x1002e9dd
mov eax, dword [esp + 0x42d8]
mov edx, dword [esi + 0x4ec4]
mov ecx, dword [eax + 0x14]
mov eax, dword [esi + 0x4ecc]
push ecx
push edx
push eax
call fcn.10029850
add esp, 0xc
test eax, eax
je 0x1002e9d6
lea edi, [esi + 0x15fb8]
lea ecx, [esp + 0x22c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edx, edx
mov dx, word [esi + 0x45da]
push edx
call fcn.10029570
add esp, 4
lea eax, [esp + 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1002e9ff
jmp 0x1002e9e2
mov ebp, 3
jmp 0x1002e9e2
mov ebp, 0x1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002eaa9
xor edi, edi
jmp 0x1002e860
mov ebp, 0x30
jmp 0x1002eaa9
xor edx, edx
xor ecx, ecx
mov dx, word [esi + 0x45dc]
mov cx, word [esi + 0x4e96]
push edx
push esi
mov dword [esi + 0x4edc], ecx
call fcn.10029610
mov ebp, eax
add esp, 8
neg ebp
sbb ebp, ebp
and ebp, 0xfffffffd
add ebp, 3
jmp 0x1002eaa9
push esi
call fcn.10031f30
push 0
push edx
push eax
mov eax, dword [esi + 0x3d08]
push eax
call fcn.100348d0
mov edx, dword [esi + 0x3d08]
add esp, 0x14
lea ecx, [esp + 0x14]
lea edi, [esi + 0x45c0]
push 0
push ecx
push 0x1e
push edi
push edx
call ebx
test eax, eax
je 0x1002ea6d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1002ea72
mov ebp, 3
cmp dword [edi], 0x4034b50
jne 0x1002eaa4
test ebp, ebp
jne 0x1002eaa9
xor eax, eax
mov ax, word [esi + 0x45da]
push eax
call fcn.10029570
xor ecx, ecx
mov cx, word [esi + 0x45dc]
push ecx
push esi
call fcn.10029610
add esp, 0xc
test eax, eax
jne 0x1002eaa9
mov ebp, 3
call fcn.10029710
xor edi, edi
cmp ebp, edi
jne 0x1002edee
lea eax, [esi + 0x348]
push eax
call fcn.1002c4a0
add esp, 4
cmp eax, edi
mov dword [esi + 0x3d14], eax
je 0x1002eb24
mov eax, dword [esp + 0x42d8]
mov dword [eax + 0xc], edi
mov dword [eax + 0x8e], edi
mov eax, dword [esi + 0x14f48]
cmp eax, edi
je 0x1002eafa
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x14f48], edi
mov eax, dword [esi + 0x15fac]
cmp eax, edi
je 0x1002eb13
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x15fac], edi
mov eax, dword [esi + 0x3d14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c4
ret
cmp dword [esi + 0x3d28], edi
jne 0x1002ec09
cmp dword [esi + 0x44], edi
je 0x1002eb7b
lea edi, [esi + 0x2ce8]
push edi
push 0
push 0x84
call fcn.10033300
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea edx, [esi + 0x3d44]
push eax
push edx
call ebx
add esp, 0xc
push edi
push 2
push 0x93
call fcn.10033300
add esp, 8
push eax
lea eax, [esp + 0x2234]
push eax
call ebx
jmp 0x1002ebf4
cmp dword [esi + 0x4c], edi
je 0x1002eb9f
push edi
push 0x95
call fcn.10033300
add esp, 8
lea ecx, [esp + 0x222c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1002ebf7
lea eax, [esi + 0x2ce8]
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x48
call fcn.10033300
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esi + 0x3d44]
push eax
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 2
push 0x91
call fcn.10033300
add esp, 8
push eax
lea eax, [esp + 0x2234]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x222c]
push ecx
call fcn.10031130
add esp, 4
jmp 0x1002ec6e
lea eax, [esi + 0x2ce8]
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x49
call fcn.10033300
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esi + 0x3d44]
push eax
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push 2
push 0x92
call fcn.10033300
add esp, 8
push eax
lea eax, [esp + 0x2234]
push eax
call edi
lea ecx, [esp + 0x2238]
push ecx
call fcn.10031130
add esp, 0x10
mov ecx, dword [esp + 0x42d8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x1002ec8d
mov edx, dword [eax + 0x12a]
and edx, 0x27
mov dword [esi + 0x3ce8], edx
jmp 0x1002ec9f
mov eax, dword [ecx + 0x8e]
mov ecx, dword [eax + 0x18]
and ecx, 0x27
mov dword [esi + 0x3ce8], ecx
mov eax, dword [esi + 0x4560]
test eax, eax
je 0x1002ecc7
mov dx, word [esp + 0x11c]
mov word [esi + 0x45cc], dx
mov ax, word [esp + 0x120]
mov word [esi + 0x45ca], ax
lea edi, [esi + 0x2ce8]
push edi
call fcn.1001fb50
add esp, 4
test eax, eax
jne 0x1002edbc
lea ecx, [esi + 0x34e8]
push ecx
call fcn.1002c240
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esi + 0x3d14], eax
jle 0x1002edb8
cmp dword [esi + 0x4ee0], ecx
je 0x1002edb8
cmp eax, 0x2c
jne 0x1002edb8
mov eax, dword [esp + 0x42d8]
cmp dword [eax + 0x28], ecx
jne 0x1002eda8
push 0x7f00
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
mov edi, eax
lea eax, [esi + 0x2ce8]
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
push 0
push 0x46
call fcn.10033300
add esp, 8
lea ecx, [esp + 0x230]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x238]
push edx
push 0
push 0
push 1
push 9
call fcn.1002fa40
add esp, 0x20
mov ebp, eax
push edi
call ebx
mov eax, dword [esp + 0x42d8]
cmp ebp, 2
jne 0x1002eda6
xor ecx, ecx
mov ebp, 0x2c
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
jmp 0x1002ede9
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x8e], ecx
mov ebp, 0x31
jmp 0x1002ede9
mov ebp, eax
jmp 0x1002ede9
mov ebx, dword [esi + 0x3ce8]
push edi
or ebx, 0x10
mov dword [esi + 0x3ce8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
cmp eax, 1
jle 0x1002ede9
push edi
call ebx
mov byte [eax + esi + 0x2ce7], 0
call fcn.10034730
call fcn.1002c4f0
mov eax, dword [esp + 0x42d8]
xor edi, edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x8e], edi
mov eax, dword [esi + 0x14f48]
cmp eax, edi
je 0x1002ee19
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x14f48], edi
mov eax, dword [esi + 0x15fac]
cmp eax, edi
je 0x1002ee32
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x15fac], edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x42c4
ret