Function at 0x4ae9b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x3b4], 0
lea eax, [esi + 0x360]
jne 0x4ae9a5
mov dword [eax + 0x68], 0
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx + 0x284], 2
sete dl
mov dword [eax + 0x6c], edx
cmp dword [esi + 0x154], 0
je 0x4ae974
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x4ae974
mov dword [eax + 0x64], 0
push ecx
jmp 0x4ae987
cmp dword [eax + 0x40], 0
je 0x4ae9a5
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x64], 1
mov edx, dword [ecx]
push edx
push str.CWD__s
push eax
call fcn.004c9a30
add esp, 0xc
test eax, eax
jne 0x4ae9aa
mov dword [esi + 0x3d0], 0x10
pop esi
ret
call fcn.004adbf0
pop esi
ret
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [ebx]
mov ecx, dword [esi + 0x863c]
xor eax, eax
cmp ebp, 0xd
push edi
mov dword [esp + 0x1c], ecx
lea edi, [ebx + 0x360]
jl 0x4ae9f2
cmp ebp, 0xe
jle 0x4ae9ea
cmp ebp, 0xf
jne 0x4ae9f2
mov ecx, dword [esi + 0x1ec]
jmp 0x4ae9f8
mov ecx, dword [esi + 0x1f0]
jmp 0x4ae9f8
mov ecx, dword [esi + 0x1e8]
cmp dword [esp + 0x20], eax
je 0x4aea03
mov dword [edi + 0x64], eax
jmp 0x4aea06
inc dword [edi + 0x64]
cmp ecx, eax
je 0x4aea5b
xor edx, edx
cmp dword [edi + 0x64], eax
jle 0x4aea1e
test ecx, ecx
je 0x4aea5b
mov ecx, dword [ecx + 4]
inc edx
cmp edx, dword [edi + 0x64]
jl 0x4aea11
test ecx, ecx
je 0x4aea5b
mov ecx, dword [ecx]
cmp byte [ecx], 0x2a
jne 0x4aea33
inc ecx
mov dword [edi + 0x68], 1
jmp 0x4aea36
mov dword [edi + 0x68], eax
push ecx
push 0x589288
push edi
call fcn.004c9a30
add esp, 0xc
test eax, eax
jne 0x4aed0e
pop edi
pop esi
mov dword [ebx + 0x3d0], ebp
pop ebp
pop ebx
add esp, 8
ret
mov ecx, ebp
sub ecx, 0xd
je 0x4aeca7
sub ecx, 1
je 0x4aea82
sub ecx, 1
je 0x4aed0e
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
jmp 0x4ae930
mov esi, dword [ebx]
mov edx, dword [esi + 0x863c]
mov ecx, dword [esi + 0x8628]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x862c]
mov eax, ecx
or eax, edx
je 0x4aec67
xor ebp, ebp
cmp edx, ebp
jg 0x4aeade
jl 0x4aeab0
cmp ecx, ebp
jae 0x4aeade
mov ecx, dword [edi + 0x48]
push ecx
push str.SIZE__s
push edi
call fcn.004c9a30
add esp, 0xc
cmp eax, ebp
jne 0x4aed0e
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d0], 0x19
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [esi + 0x2a0], 1
mov eax, dword [ebx + 0x20c]
cmp eax, ebp
je 0x4aebcf
push ebp
push edx
mov edx, dword [ebx + 0x210]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, ebp
je 0x4aebcf
cmp eax, 2
je 0x4aeb2d
push str.Could_not_seek_stream
push esi
call fcn.0049af20
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1f
pop ebx
add esp, 8
ret
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
jmp 0x4aeb40
mov edi, dword [esi + 0x8628]
sub edi, dword [esp + 0x10]
mov ebp, dword [esi + 0x862c]
sbb ebp, dword [esp + 0x14]
js 0x4aeb67
jg 0x4aeb60
cmp edi, 0x4000
jbe 0x4aeb67
mov edi, 0x4000
xor ebp, ebp
mov eax, dword [ebx + 0x218]
mov ecx, dword [ebx + 0x214]
push eax
push edi
lea eax, [esi + 0x524]
push 1
push eax
call ecx
xor ecx, ecx
add esp, 0x10
add dword [esp + 0x10], eax
adc dword [esp + 0x14], ecx
test ecx, ecx
jl 0x4aec4c
jg 0x4aeb9f
test eax, eax
jbe 0x4aec4c
cmp ecx, ebp
jg 0x4aec4c
jl 0x4aebb1
cmp eax, edi
ja 0x4aec4c
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x862c]
jg 0x4aebcf
jl 0x4aeb40
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x8628]
jb 0x4aeb40
mov eax, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
test eax, eax
jl 0x4aec67
jg 0x4aebe9
test ecx, ecx
jbe 0x4aec67
sub ecx, dword [esi + 0x8628]
sbb eax, dword [esi + 0x862c]
mov dword [esi + 0x1b0], ecx
mov dword [esi + 0x1b4], eax
test eax, eax
jg 0x4aec67
jl 0x4aec0b
test ecx, ecx
ja 0x4aec67
push str.File_already_completely_uploaded_n
push esi
call fcn.0049ae90
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00499370
mov ecx, dword [esp + 0x44]
add esp, 0x28
pop edi
pop esi
mov dword [ecx + 0xc], 2
pop ebp
mov dword [ebx + 0x3d0], 0
xor eax, eax
pop ebx
add esp, 8
ret
push str.Failed_to_read_data
push esi
call fcn.0049af20
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1f
pop ebx
add esp, 8
ret
cmp dword [esi + 0x2a0], 0
mov ecx, str.APPE__s
jne 0x4aec7a
mov ecx, str.STOR__s
mov edx, dword [ebx + 0x3a8]
lea eax, [ebx + 0x360]
push edx
push ecx
push eax
call fcn.004c9a30
add esp, 0xc
test eax, eax
jne 0x4aed0e
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d0], 0x21
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], eax
je 0x4aecbe
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d0], eax
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4aecee
push ecx
push eax
push esi
call fcn.004a27b0
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x78]
push eax
push ecx
push ebx
call fcn.004ac810
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [edi + 0x48]
push edx
push str.SIZE__s
push edi
call fcn.004c9a30
add esp, 0xc
test eax, eax
jne 0x4aed0e
mov dword [ebx + 0x3d0], 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret