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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5648f8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2cac
call fcn.0054f020
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x2ca8], eax
push ebx
push esi
push edi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x2cc0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
test eax, eax
je 0x48d291
cmp dword [eax + 0x2e4], 0xff
je 0x48d291
cmp dword [edi + 8], 0
jne 0x48d291
xor edx, edx
inc edx
inc dword [edi + 0xc]
cmp byte [ebp + 8], 0
mov dword [edi + 8], edx
je 0x48cd8e
inc dword [edi + 0x10]
inc dword [edi + 0x28]
cmp byte [edi + 0x4c], 0
je 0x48cd61
inc dword [edi + 0x14]
inc dword [edi + 0x48]
push str.SeaFile_use_cdn:false
push dword [edi]
mov byte [edi + 0x4c], 0
call fcn.0048ff45
pop ecx
pop ecx
jmp 0x48cd8e
mov eax, dword [edi]
mov ecx, dword [eax + 0x5d0]
test ecx, ecx
jne 0x48cd7d
mov eax, dword [eax + 0x520]
mov al, byte [eax + 0x3a5]
test al, al
jne 0x48cd8b
cmp ecx, edx
je 0x48cd8b
cmp ecx, 2
je 0x48cd8b
cmp ecx, 3
jne 0x48cd8e
inc dword [edi + 0x40]
mov esi, dword [edi]
lea ecx, [esi + 0x208]
call fcn.00520181
mov dl, byte [edi + 0x2c]
xor bl, bl
and dword [esp + 0x3c], 0
mov dword [esp + 0x44], eax
test dl, dl
je 0x48ce04
mov ecx, dword [esi + 0x608]
test ecx, ecx
je 0x48ce04
mov eax, dword [ecx]
xor ebx, ebx
movzx edx, dl
dec edx
cmp edx, 0xffffffff
jne 0x48cde6
jmp 0x48cdd0
cmp dword [eax + 0x14], 0xffffffff
je 0x48cdcd
inc ebx
add eax, 0x30
cmp eax, dword [ecx + 4]
jne 0x48cdc6
jmp 0x48cdeb
cmp dword [eax + 0x1c], edx
jne 0x48cde3
cmp dword [eax + 0x14], 0xffffffff
je 0x48cde3
inc ebx
add eax, 0x30
cmp eax, dword [ecx + 4]
jne 0x48cdd7
push edx
call fcn.0049ae64
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
movzx eax, ax
mov dword [esp + 0x3c], eax
push 0
call dword [sym.imp.MSVCR120.dll__time64]
pop ecx
push eax
call dword [sym.imp.MSVCR120.dll_srand]
mov esi, dword [sym.imp.MSVCR120.dll_rand]
pop ecx
call esi
and eax, 0x8000007f
jns 0x48ce29
dec eax
or eax, 0xffffff80
inc eax
mov dword [esp + 0x40], eax
call esi
push 7
pop ecx
cdq
idiv ecx
push 0
push 0x400
lea eax, [esp + 0x28bc]
mov esi, edx
push eax
lea ecx, [esp + 0x58]
call fcn.0051ef51
and dword [esp + 0x2cc8], 0
lea eax, [esi + 0x112]
movzx eax, ax
lea ecx, [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x78], eax
push esi
push 2
lea eax, [esp + 0x80]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push esi
push 2
mov eax, dword [eax + 0x520]
mov eax, dword [eax + 0x240]
movzx eax, ax
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x7c]
push eax
call fcn.0051eb7a
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x520]
call fcn.0044d5a6
push esi
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x50]
push 4
lea eax, [esp + 0x84]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push esi
push 2
mov eax, dword [eax + 0x51c]
mov eax, dword [eax + 0x148]
movzx eax, ax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push esi
push 1
mov eax, dword [eax + 0x51c]
mov al, byte [eax + 0x14c]
mov byte [esp + 0x1c], al
lea eax, [esp + 0x1c]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push esi
push 1
mov eax, dword [eax + 0x520]
mov eax, dword [eax + 0x1c]
mov byte [esp + 0x3c], al
lea eax, [esp + 0x3c]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
push esi
push 0x10
add eax, 0x208
push eax
lea ecx, [esp + 0x58]
call fcn.0051eb7a
cmp byte [edi + 0x2c], 0
lea ecx, [esp + 0x4c]
push esi
push 1
jne 0x48cf70
mov eax, dword [edi]
mov eax, dword [eax + 0x51c]
mov al, byte [eax + 0x14d]
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
jmp 0x48cf7d
mov al, byte [0x5bb73b]
mov byte [esp + 0x34], al
lea eax, [esp + 0x34]
push eax
call fcn.0051eb7a
mov al, byte [0x5bb73a]
lea ecx, [esp + 0x4c]
push esi
mov byte [esp + 0x28], al
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0051eb7a
mov al, byte [edi + 0x2c]
lea ecx, [esp + 0x4c]
push esi
mov byte [esp + 0x14], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0051eb7a
push esi
push 1
lea eax, [esp + 0x20]
mov byte [esp + 0x20], bl
push eax
lea ecx, [esp + 0x58]
call fcn.0051eb7a
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x4c]
movzx eax, si
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push 2
push eax
call fcn.0051eb7a
mov eax, dword [edi + 0x30]
lea ecx, [esp + 0x4c]
push 0
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push 4
push eax
call fcn.0051eb7a
mov eax, dword [edi + 0x34]
lea ecx, [esp + 0x4c]
push 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.0051eb7a
mov al, byte [edi + 0x38]
lea ecx, [esp + 0x4c]
push 0
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0051eb7a
mov al, byte [edi + 0x39]
lea ecx, [esp + 0x4c]
push 0
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.0051eb7a
mov al, byte [edi + 0x3a]
lea ecx, [esp + 0x4c]
push 0
mov byte [esp + 0x34], al
lea eax, [esp + 0x34]
push 1
push eax
call fcn.0051eb7a
mov cl, byte [0x5b323c]
lea eax, [esp + 0x38]
push 0
push 1
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x54]
push eax
call fcn.0051eb7a
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
cdq
push edx
push eax
lea eax, [esp + 0x28bc]
push eax
call fcn.0051eb7a
mov eax, dword [edi]
push dword [eax + 0x5d0]
push dword [eax + 0x5cc]
push dword [edi + 0x10]
push dword [edi + 0xc]
push 0x5821c8
push eax
call fcn.0048ff45
movzx eax, si
push eax
movzx eax, bl
push eax
movzx eax, byte [edi + 0x2c]
push eax
movzx eax, byte [0x5bb73a]
push eax
movzx eax, byte [0x5bb73b]
push eax
push str.seafile
push dword [edi]
call fcn.0048ff45
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x34
call esi
inc byte [edi + 0x2c]
cmp dword [edi + 0x28], 5
mov dword [edi + 0x18], eax
jne 0x48d2b7
inc dword [edi + 0x44]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28a0]
xor ebx, ebx
push eax
mov ecx, edi
mov dword [edi + 0x28], ebx
call fcn.0048d45e
push 0x27ff
lea eax, [esp + 0xa1]
mov byte [esp + 0x2ccc], 1
push ebx
push eax
mov byte [esp + 0xa8], bl
call sub.MSVCR120.dll_memset
add esp, 0xc
push dword [esp + 0x44]
push str.SeaFile_use_cdn:_d
push dword [edi]
call fcn.0048ff45
add esp, 0xc
mov dword [edi + 0x20], 0x1770
call esi
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x48d16c
mov dword [edi + 0x1c], 1
mov eax, dword [edi]
sub esp, 0x18
mov esi, esp
mov byte [edi + 0x4c], 1
mov dword [esp + 0x60], esp
mov dword [esp + 0x9c], esi
mov ebx, dword [eax + 0x51c]
mov eax, dword [eax + 0x520]
and dword [esi + 0x10], 0
mov dword [esp + 0x58], eax
push 0x18
mov byte [esp + 0x2ce4], 2
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x48d1b3
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov al, byte [esp + 0xa8]
mov dword [ecx], 0x5822ac
mov dword [ecx + 4], 0x48d378
mov byte [ecx + 8], al
mov al, byte [esp + 0xa9]
mov byte [ecx + 9], al
mov al, byte [esp + 0xaa]
mov byte [ecx + 0xa], al
mov al, byte [esp + 0xab]
mov byte [ecx + 0xb], al
mov eax, dword [esp + 0x58]
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], eax
mov dword [esi + 0x10], ecx
sub esp, 0x18
mov byte [esp + 0x2cf8], 3
lea eax, [esp + 0x28cc]
mov dword [esp + 0x70], esp
mov ecx, esp
push eax
call fcn.004075e3
mov byte [esp + 0x2cf8], 4
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x94]
mov dword [esp + 0xb8], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x520]
call fcn.0044ba67
push 0x1770
push esi
lea ecx, [esp + 0x28ec]
xor ebx, ebx
push ecx
mov ecx, dword [edi]
push edx
push eax
push ebx
push 1
mov byte [esp + 0x2d14], 1
mov ecx, dword [ecx + 0x520]
push 0x50
call fcn.0044b0d6
push ebx
push 1
lea ecx, [esp + 0x28a4]
mov byte [esp + 0x2cd0], bl
call fcn.00401c56
push dword [edi + 0xc]
push 0x58227c
push dword [edi]
call fcn.0048ff45
add esp, 0xc
mov ecx, dword [esp + 0x2cc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2ca8]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi]
lea eax, [ecx + 0x5d0]
push eax
push dword [ecx + 0x5cc]
lea eax, [esp + 0x28bc]
push dword [edi + 0x10]
push dword [esp + 0x70]
push eax
push ecx
push dword [esp + 0x5c]
mov ecx, dword [ecx + 0x520]
call fcn.0044ea02
mov esi, dword [edi]
mov edx, dword [esi + 0x5d0]
test edx, edx
jne 0x48d2ff
mov ecx, dword [esi + 0x520]
cmp byte [ecx + 0x3a5], dl
jne 0x48d30e
cmp edx, 1
je 0x48d30e
cmp edx, 2
je 0x48d30e
cmp edx, 3
jne 0x48d311
inc dword [edi + 0x3c]
test al, al
je 0x48d27f
cmp dword [esi + 0x2d8], 1
mov eax, 0xffff
jne 0x48d32e
mov ecx, edi
call fcn.0048d346
push eax
push dword [edi + 0xc]
push 0x582148
push dword [edi]
call fcn.0048ff45
add esp, 0x10
jmp 0x48d291