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

Disassembly:
push esi
mov esi, eax
mov ecx, dword [esi + 0x41c]
test ecx, ecx
lea eax, [esi + 0x3c8]
jne 0x4119ec
mov dword [eax + 0x68], 0
mov ecx, dword [esi]
push ebx
mov ebx, dword [ecx + 0x274]
xor edx, edx
cmp ebx, 2
sete dl
pop ebx
mov dword [eax + 0x6c], edx
mov ecx, dword [esi + 0x194]
test ecx, ecx
je 0x4119ba
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x4119ba
mov dword [eax + 0x64], 0
push ecx
jmp 0x4119ce
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4119ec
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x64], 1
mov edx, dword [ecx]
push edx
push str.CWD__s
push eax
call fcn.00419870
add esp, 0xc
test eax, eax
jne 0x4119f1
mov dword [esi + 0x438], 0x10
pop esi
ret
call fcn.00410cd0
pop esi
ret
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi]
mov ecx, dword [esi + 0x8644]
xor eax, eax
cmp ebp, 0xd
mov dword [esp + 0x1c], ecx
lea ebx, [edi + 0x3c8]
jl 0x411a42
cmp ebp, 0xe
jle 0x411a3a
cmp ebp, 0xf
jne 0x411a42
mov ecx, dword [esi + 0x1dc]
jmp 0x411a48
mov ecx, dword [esi + 0x1e0]
jmp 0x411a48
mov ecx, dword [esi + 0x1d8]
cmp dword [esp + 0x20], eax
je 0x411a53
mov dword [ebx + 0x64], eax
jmp 0x411a56
inc dword [ebx + 0x64]
cmp ecx, eax
je 0x411aaf
xor edx, edx
cmp dword [ebx + 0x64], edx
jle 0x411a6e
test ecx, ecx
je 0x411aaf
mov ecx, dword [ecx + 4]
inc edx
cmp edx, dword [ebx + 0x64]
jl 0x411a61
test ecx, ecx
je 0x411aaf
mov ecx, dword [ecx]
cmp byte [ecx], 0x2a
jne 0x411a83
inc ecx
mov dword [ebx + 0x68], 1
jmp 0x411a8a
mov dword [ebx + 0x68], 0
push ecx
push 0x432684
push ebx
call fcn.00419870
add esp, 0xc
test eax, eax
jne 0x411d53
mov dword [edi + 0x438], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, ebp
sub ecx, 0xd
je 0x411ce6
dec ecx
je 0x411ad2
dec ecx
je 0x411d53
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
jmp 0x411970
mov esi, dword [edi]
mov edx, dword [esi + 0x8644]
mov ecx, dword [esi + 0x8630]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x8634]
mov eax, ecx
or eax, edx
je 0x411ca1
test edx, edx
jg 0x411b2a
jl 0x411afe
test ecx, ecx
jae 0x411b2a
mov ecx, dword [ebx + 0x48]
push ecx
push str.SIZE__s
push ebx
call fcn.00419870
add esp, 0xc
test eax, eax
jne 0x411d53
mov dword [edi + 0x438], 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x290], 1
mov eax, dword [edi + 0x26c]
test eax, eax
je 0x411bff
push 0
push edx
mov edx, dword [edi + 0x270]
push ecx
push edx
call eax
add esp, 0x10
test eax, eax
je 0x411bff
cmp eax, 2
je 0x411b7a
push str.Could_not_seek_stream
push esi
call fcn.00403490
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1f
pop ebx
add esp, 8
ret
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0x8630]
mov ecx, dword [esi + 0x8634]
mov edx, dword [esp + 0x14]
sub eax, ebp
sbb ecx, edx
js 0x411ba6
jg 0x411b9f
cmp eax, 0x4000
jbe 0x411ba6
mov ebx, 0x4000
jmp 0x411bb2
push ecx
push eax
call fcn.00416960
add esp, 8
mov ebx, eax
mov eax, dword [edi + 0x278]
push eax
push ebx
lea eax, [esi + 0x524]
push 1
push eax
call dword [edi + 0x274]
mov edx, dword [esp + 0x24]
add esp, 0x10
add ebp, eax
adc edx, 0
test eax, eax
mov dword [esp + 0x14], edx
je 0x411c86
cmp eax, ebx
ja 0x411c86
mov eax, dword [esi + 0x8634]
mov ecx, edx
cmp ecx, eax
jg 0x411bff
jl 0x411b80
cmp ebp, dword [esi + 0x8630]
jb 0x411b80
mov eax, dword [esi + 0x1a4]
test eax, eax
mov ecx, dword [esi + 0x1a0]
jl 0x411ca1
jg 0x411c1d
test ecx, ecx
jbe 0x411ca1
mov ebx, dword [esi + 0x8630]
mov edx, dword [esi + 0x8634]
sub ecx, ebx
sbb eax, edx
test eax, eax
mov dword [esi + 0x1a0], ecx
mov dword [esi + 0x1a4], eax
jg 0x411ca1
jl 0x411c45
mov eax, ecx
test eax, eax
ja 0x411ca1
push str.File_already_completely_uploaded_n
push esi
call fcn.004033d0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.004028d0
mov edx, dword [esp + 0x44]
add esp, 0x28
mov dword [edx + 0xc], 2
mov dword [edi + 0x438], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push str.Failed_to_read_data
push esi
call fcn.00403490
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1f
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x290]
test eax, eax
mov ecx, str.APPE__s
jne 0x411cb5
mov ecx, str.STOR__s
mov edx, dword [edi + 0x410]
lea eax, [edi + 0x3c8]
push edx
push ecx
push eax
call fcn.00419870
add esp, 0xc
test eax, eax
jne 0x411d53
mov dword [edi + 0x438], 0x21
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x411d03
mov dword [edi + 0x438], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x411d33
push ecx
push eax
push esi
call fcn.00416e40
mov eax, dword [ebx + 0x7c]
mov ecx, dword [ebx + 0x78]
push eax
push ecx
push edi
call fcn.0040f950
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [ebx + 0x48]
push edx
push str.SIZE__s
push ebx
call fcn.00419870
add esp, 0xc
test eax, eax
jne 0x411d53
mov dword [edi + 0x438], 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret