Function at 0x4a5580
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4e719a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xb8]
mov dword [esp + 0xb4], ebx
push 0x2800
rep stosd dword es:[edi], eax
call fcn.004d46ce
add esp, 4
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x80]
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x54], 0x493e0
mov byte [esp + 0x84], al
call fcn.00407190
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x84]
push ebp
call fcn.004085a0
test al, al
je 0x4a5646
mov edi, dword [esp + 0x84]
mov ecx, ebp
mov edx, ecx
mov esi, 0x518908
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x84]
call fcn.00408580
mov al, byte [esp + 0x13]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x5c], esp
push 0
mov ecx, esi
mov dword [esp + 0xf8], 0
mov byte [esi], al
call fcn.00407190
mov edx, dword [esp + 0x104]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00406db0
lea ecx, [esp + 0xb4]
push ecx
call fcn.004a6100
add esp, 0x14
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x80]
push edx
push 0
push eax
mov byte [esp + 0xf0], 1
call fcn.00406bb0
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe8], 0
call fcn.00407190
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], al
call fcn.00407190
mov edi, str._____________________________40099aabb3793
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x58]
push ebp
call fcn.004085a0
test al, al
je 0x4a5720
mov edi, dword [esp + 0x58]
mov ecx, ebp
mov edx, ecx
mov esi, str._____________________________40099aabb3793
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
call fcn.00408580
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0xe8], 2
mov byte [esp + 0x68], al
call fcn.00407190
mov edi, str.Content_Type:_multipart_form_data__boundary
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x68]
push ebp
call fcn.004085a0
test al, al
je 0x4a577f
mov edi, dword [esp + 0x68]
mov ecx, ebp
mov edx, ecx
mov esi, str.Content_Type:_multipart_form_data__boundary
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x68]
call fcn.00408580
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x54]
push eax
push 0
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0xf0], 3
call fcn.00406a10
mov edi, 0x509cd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd8
lea ecx, [esp + 0x6c]
call fcn.00406af0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], dl
call fcn.00407190
mov edi, 0x509cd4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.004085a0
test al, al
je 0x4a5812
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov eax, ecx
mov esi, 0x509cd4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
call fcn.00408580
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x54]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xf0], 4
call fcn.00406a10
mov edi, str._r_nContent_Disposition:_form_data__filename_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__filename_
lea ecx, [esp + 0x44]
call fcn.00406af0
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x80]
push eax
push 0
push ecx
lea ecx, [esp + 0x48]
call fcn.00406a10
mov edi, str.____name_upload_data_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.____name_upload_data_
lea ecx, [esp + 0x44]
call fcn.00406af0
mov edi, str.__r_nContent_Type:_text_html_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.__r_nContent_Type:_text_html_r_n_r_n
lea ecx, [esp + 0x44]
call fcn.00406af0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00407190
mov edi, 0x509cd8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.004085a0
test al, al
je 0x4a58fb
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, 0x509cd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov edi, 0x509cd4
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xe4], 5
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cd4
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x54]
push ecx
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edi, str._r_nContent_Disposition:_form_data__name_identity_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_identity_
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00406af0
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x518b40
call fcn.004d4702
lea eax, [esp + 0x38]
push eax
call fcn.00415810
add esp, 8
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xe4], 6
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406af0
lea ecx, [esp + 0x34]
mov byte [esp + 0xe4], 5
call fcn.004d498d
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n__
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x54]
push ecx
push 0
push edx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov eax, dword [0x509d80]
lea ecx, [esp + 0x94]
push eax
push 0x509d74
push ecx
call fcn.004aeeec
mov edi, str._r_nContent_Disposition:_form_data__name_PID_
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [0x4ea898]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x4a5a3a
call fcn.004c0b21
test esi, esi
jbe 0x4a5a7f
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.004085a0
test al, al
je 0x4a5a7f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str._r_nContent_Disposition:_form_data__name_PID_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4ea898]
sub ecx, edx
cmp ecx, esi
ja 0x4a5aa5
call fcn.004c0b21
test esi, esi
jbe 0x4a5aea
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.004085a0
test al, al
je 0x4a5aea
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str._r_n_r_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4a5b11
call fcn.004c0b21
test esi, esi
jbe 0x4a5b58
mov ecx, dword [esp + 0x1c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.004085a0
test al, al
je 0x4a5b58
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x94]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4a5b7d
call fcn.004c0b21
test esi, esi
jbe 0x4a5bc2
mov ecx, dword [esp + 0x1c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.004085a0
test al, al
je 0x4a5bc2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, str._r_n__
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x54]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a10
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ea898]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x4a5bfe
call fcn.004c0b21
test esi, esi
jbe 0x4a5c43
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.004085a0
test al, al
je 0x4a5c43
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.___r_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408580
push 0
push 0
push 0
push 1
push str.HttpSendRequest
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x90], eax
je 0x4a5fe4
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xec]
push 1
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x4a5c9d
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x4a5faf
mov ecx, dword [esp + 0xf0]
push 0
push 0x4400000
push 0
push 0
push 0
push ecx
push 0x509bf8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
jne 0x4a5cd3
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x4a5faf
mov edx, dword [esp + 0xf4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x4a5d07
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x4a5faf
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x50]
push 4
push eax
push 2
push edi
call esi
lea ecx, [esp + 0x50]
push 4
push ecx
push 5
push edi
call esi
lea edx, [esp + 0x50]
push 4
push edx
push 7
push edi
call esi
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x4a5d3e
mov eax, 0x4ea894
mov ecx, dword [esp + 0x6c]
push 0x20000000
push ecx
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x4a5d65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x4a5faf
mov edx, dword [esp + 0x30]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
add edx, ecx
push 0
add edx, eax
push 0
lea eax, [esp + 0xbc]
push 0
push eax
push edi
mov dword [esp + 0xc8], 0x28
mov dword [esp + 0xe4], edx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x4a5dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x4a5faf
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.WININET.dll_InternetWriteFile]
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
inc eax
cmp eax, 1
mov dword [esp + 0x38], eax
jne 0x4a5e14
mov eax, dword [esp + 0x44]
cmp eax, 0x2800
jbe 0x4a5dec
mov eax, 0x27ff
mov ecx, eax
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x4a5dff
mov eax, 0x4ea894
push ecx
push eax
push ebp
call fcn.004b0350
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov byte [ecx + ebp], 0
jmp 0x4a5e30
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x24]
push 0
push edx
push 0x2800
push ebp
push eax
call esi
test eax, eax
je 0x4a5f02
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x7c]
push ecx
push edx
push ebp
push ebx
call edi
test eax, eax
je 0x4a5e71
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x24]
cmp eax, 0x2800
mov dword [esp + 0x78], ecx
jae 0x4a5e62
cmp dword [esp + 0x38], 1
ja 0x4a5e7e
cmp dword [esp + 0x38], 0x7d0
ja 0x4a5e7e
jmp 0x4a5dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x4a5fab
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x2800
jbe 0x4a5e8f
mov ecx, 0x27ff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4a5ea0
mov eax, 0x4ea894
push ecx
push eax
push ebp
call fcn.004b0350
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea edx, [esp + 0x7c]
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x24]
push edx
push eax
push ebp
push ebx
call edi
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x4a5eec
xor ebx, ebx
jmp 0x4a5fab
lea edx, [esp + 0x24]
push edx
push 0x2800
push ebp
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a5f09
xor ebx, ebx
jmp 0x4a5fab
mov eax, dword [esp + 0x24]
mov byte [eax + ebp], 0
mov ecx, dword [0x51347c]
mov dword [esp + 0x34], ecx
push ecx
mov byte [esp + 0xe8], 7
mov ecx, esp
mov dword [esp + 0x78], esp
push ebp
call fcn.004d49fb
lea edx, [esp + 0x78]
push edx
call fcn.00415b20
add esp, 8
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xe8], 8
call fcn.004d4ac6
lea ecx, [esp + 0x74]
mov byte [esp + 0xe4], 7
call fcn.004d498d
push 0
lea ecx, [esp + 0x38]
call fcn.004d4dbd
push eax
push 0x509d48
push ebp
call fcn.004aeeec
add esp, 0xc
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
call fcn.004d4e0c
lea ecx, [esp + 0x34]
mov byte [esp + 0xe4], 5
call fcn.004d498d
push str.200
push ebp
call fcn.004b0b80
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
inc ebx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x90]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
test edi, edi
je 0x4a5fc6
push edi
call esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4a5fd1
push eax
call esi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a5fe8
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a5fe8
mov ebp, dword [esp + 0x2c]
xor esi, esi
cmp ebp, esi
je 0x4a5ff7
push ebp
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4a601b
mov al, byte [ecx - 1]
test al, al
je 0x4a6011
cmp al, 0xff
je 0x4a6011
dec al
mov byte [ecx - 1], al
jmp 0x4a601b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x4a604b
mov al, byte [ecx - 1]
test al, al
je 0x4a6041
cmp al, 0xff
je 0x4a6041
dec al
mov byte [ecx - 1], al
jmp 0x4a604b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x40], esi
cmp ecx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x4a607b
mov al, byte [ecx - 1]
test al, al
je 0x4a6071
cmp al, 0xff
je 0x4a6071
dec al
mov byte [ecx - 1], al
jmp 0x4a607b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], esi
cmp ecx, esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
je 0x4a60ab
mov al, byte [ecx - 1]
test al, al
je 0x4a60a1
cmp al, 0xff
je 0x4a60a1
dec al
mov byte [ecx - 1], al
jmp 0x4a60ab
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x58], esi
cmp ecx, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
je 0x4a60de
mov al, byte [ecx - 1]
test al, al
je 0x4a60d4
cmp al, 0xff
je 0x4a60d4
dec al
mov byte [ecx - 1], al
jmp 0x4a60de
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret