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

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x3bc], 0
lea eax, [esi + 0x368]
jne 0x4639b5
mov dword [eax + 0x68], 0
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx + 0x2bc], 2
sete dl
mov dword [eax + 0x6c], edx
cmp dword [esi + 0x154], 0
je 0x463984
mov ecx, dword [eax + 0x38]
test ecx, ecx
je 0x463984
mov dword [eax + 0x64], 0
push ecx
jmp 0x463997
cmp dword [eax + 0x40], 0
je 0x4639b5
mov ecx, dword [eax + 0x3c]
mov dword [eax + 0x64], 1
mov edx, dword [ecx]
push edx
push str.CWD__s
push eax
call fcn.0046c5c0
add esp, 0xc
test eax, eax
jne 0x4639ba
mov dword [esi + 0x3d8], 0x10
pop esi
ret
call fcn.00462bf0
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 + 0x867c]
xor eax, eax
cmp ebp, 0xd
push edi
mov dword [esp + 0x1c], ecx
lea edi, [ebx + 0x368]
jl 0x463a02
cmp ebp, 0xe
jle 0x4639fa
cmp ebp, 0xf
jne 0x463a02
mov ecx, dword [esi + 0x224]
jmp 0x463a08
mov ecx, dword [esi + 0x228]
jmp 0x463a08
mov ecx, dword [esi + 0x220]
cmp dword [esp + 0x20], eax
je 0x463a13
mov dword [edi + 0x64], eax
jmp 0x463a16
inc dword [edi + 0x64]
cmp ecx, eax
je 0x463a6b
xor edx, edx
cmp dword [edi + 0x64], eax
jle 0x463a2e
test ecx, ecx
je 0x463a6b
mov ecx, dword [ecx + 4]
inc edx
cmp edx, dword [edi + 0x64]
jl 0x463a21
test ecx, ecx
je 0x463a6b
mov ecx, dword [ecx]
cmp byte [ecx], 0x2a
jne 0x463a43
inc ecx
mov dword [edi + 0x68], 1
jmp 0x463a46
mov dword [edi + 0x68], eax
push ecx
push 0x4ec234
push edi
call fcn.0046c5c0
add esp, 0xc
test eax, eax
jne 0x463d1e
pop edi
pop esi
mov dword [ebx + 0x3d8], ebp
pop ebp
pop ebx
add esp, 8
ret
mov ecx, ebp
sub ecx, 0xd
je 0x463cb7
sub ecx, 1
je 0x463a92
sub ecx, 1
je 0x463d1e
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
jmp 0x463940
mov esi, dword [ebx]
mov edx, dword [esi + 0x867c]
mov ecx, dword [esi + 0x8668]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x866c]
mov eax, ecx
or eax, edx
je 0x463c77
xor ebp, ebp
cmp edx, ebp
jg 0x463aee
jl 0x463ac0
cmp ecx, ebp
jae 0x463aee
mov ecx, dword [edi + 0x48]
push ecx
push str.SIZE__s
push edi
call fcn.0046c5c0
add esp, 0xc
cmp eax, ebp
jne 0x463d1e
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d8], 0x19
xor eax, eax
pop ebx
add esp, 8
ret
mov dword [esi + 0x2d8], 1
mov eax, dword [ebx + 0x210]
cmp eax, ebp
je 0x463bdf
push ebp
push edx
mov edx, dword [ebx + 0x214]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, ebp
je 0x463bdf
cmp eax, 2
je 0x463b3d
push str.Could_not_seek_stream
push esi
call fcn.00452690
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 0x463b50
mov edi, dword [esi + 0x8668]
sub edi, dword [esp + 0x10]
mov ebp, dword [esi + 0x866c]
sbb ebp, dword [esp + 0x14]
js 0x463b77
jg 0x463b70
cmp edi, 0x4000
jbe 0x463b77
mov edi, 0x4000
xor ebp, ebp
mov eax, dword [ebx + 0x21c]
mov ecx, dword [ebx + 0x218]
push eax
push edi
lea eax, [esi + 0x55c]
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 0x463c5c
jg 0x463baf
test eax, eax
jbe 0x463c5c
cmp ecx, ebp
jg 0x463c5c
jl 0x463bc1
cmp eax, edi
ja 0x463c5c
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x866c]
jg 0x463bdf
jl 0x463b50
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x8668]
jb 0x463b50
mov eax, dword [esi + 0x1ec]
mov ecx, dword [esi + 0x1e8]
test eax, eax
jl 0x463c77
jg 0x463bf9
test ecx, ecx
jbe 0x463c77
sub ecx, dword [esi + 0x8668]
sbb eax, dword [esi + 0x866c]
mov dword [esi + 0x1e8], ecx
mov dword [esi + 0x1ec], eax
test eax, eax
jg 0x463c77
jl 0x463c1b
test ecx, ecx
ja 0x463c77
push str.File_already_completely_uploaded_n
push esi
call fcn.00452600
push 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00451b50
mov ecx, dword [esp + 0x44]
add esp, 0x28
pop edi
pop esi
mov dword [ecx + 0xc], 2
pop ebp
mov dword [ebx + 0x3d8], 0
xor eax, eax
pop ebx
add esp, 8
ret
push str.Failed_to_read_data
push esi
call fcn.00452690
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1f
pop ebx
add esp, 8
ret
cmp dword [esi + 0x2d8], 0
mov ecx, str.APPE__s
jne 0x463c8a
mov ecx, str.STOR__s
mov edx, dword [ebx + 0x3b0]
lea eax, [ebx + 0x368]
push edx
push ecx
push eax
call fcn.0046c5c0
add esp, 0xc
test eax, eax
jne 0x463d1e
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d8], 0x21
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], eax
je 0x463cce
pop edi
pop esi
pop ebp
mov dword [ebx + 0x3d8], 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 0x463cfe
push ecx
push eax
push esi
call fcn.00456af0
mov eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x78]
push eax
push ecx
push ebx
call fcn.00461800
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.0046c5c0
add esp, 0xc
test eax, eax
jne 0x463d1e
mov dword [ebx + 0x3d8], 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret