Function at 0x4586c0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630d2f
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x6a73e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x21c], eax
call fcn.00459250
push 0x208
mov edi, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005fc2a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4587d2
cmp dword [edi], 0
jne 0x4587d2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x4587d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4587d2
call eax
mov dword [edi + 0xc], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x459126
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 2
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x459130
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x248], edi
mov byte [ebp - 4], 4
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x45913a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 6
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x459144
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 7
push ebx
push eax
call fcn.00457d70
add esp, 0xc
or ebx, 0xffffffff
test al, al
je 0x458fac
push str.95_DFC_0.25__
lea ecx, [ebp - 0x21c]
call fcn.00406e20
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a0ee0
add esp, 0xc
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 9
call fcn.00454600
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4588e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45890a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00458270
push dword [ebp - 0x284]
lea eax, [ebp - 0x24c]
push str.http:__chat.52toolbox.com_intf_index_token_s
push eax
call fcn.00408f60
add esp, 0x14
mov byte [ebp - 4], 0xa
call fcn.00409050
mov ecx, eax
test ecx, ecx
je 0x45914e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x250], eax
push 0x6443b4
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0xb
call fcn.00406e20
push 1
push 0
push 0x2710
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0045c200
mov edx, dword [ebp - 0x21c]
add esp, 0x1c
mov esi, eax
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4589c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x458f7f
call fcn.00487510
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x458ab4
push 0x47
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_maincommonutils.cpp
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], 0
call fcn.0040b9b0
push 0x1fc
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004073a0
mov esi, eax
push str.get_cloud_cfg_ok_
push esi
mov byte [ebp - 4], 0xf
call fcn.00410700
mov edi, dword [ebp - 0x240]
push edi
push esi
call fcn.004082d0
add esp, 0x10
call fcn.00487510
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.004083f0
lea ecx, [ebp - 0x268]
call fcn.00407b80
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0xb
call fcn.00407b80
jmp 0x458aba
mov edi, dword [ebp - 0x240]
push 0xfde9
push dword [ebp - 0x250]
lea eax, [ebp - 0x388]
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x38c]
mov dword [ebp - 0x38c], eax
call fcn.00459770
push dword [ebp - 0x38c]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
call fcn.00406e20
mov eax, dword [ebp - 0x38c]
lea ecx, [ebp - 0x388]
mov byte [ebp - 4], 0x12
cmp eax, ecx
je 0x458b18
push eax
call fcn.005ffbb1
add esp, 4
push str.95_DFC_0.25__
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], 0
call fcn.00406e20
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a0a20
add esp, 0xc
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov byte [ebp - 4], 0x15
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458b74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xfde9
push dword [ebp - 0x220]
lea ecx, [ebp - 0x94]
call fcn.00457060
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x458bb0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.0040b9b0
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x18
cmp eax, ecx
je 0x458be3
push eax
call fcn.005ffbb1
add esp, 4
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x240], edi
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x459158
mov eax, dword [ecx]
lea edx, [ebp - 0x240]
push edx
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [eax + 8]
call eax
mov edi, dword [ebp - 0x248]
mov esi, dword [ebp - 0x24c]
mov byte [ebp - 0x241], al
test al, al
jne 0x458efc
call fcn.00487510
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x458d17
push 0x47
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_maincommonutils.cpp
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
call fcn.0040b9b0
push 0x204
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x320]
call fcn.004073a0
mov ebx, eax
push str.url:
push ebx
mov byte [ebp - 4], 0x1b
call fcn.004082d0
test esi, esi
mov ecx, 0x6407a4
cmovne ecx, esi
push ecx
push ebx
call fcn.00410700
add esp, 0x10
call fcn.00487510
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.004083f0
lea ecx, [ebp - 0x280]
call fcn.00407b80
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0x18
call fcn.00407b80
call fcn.00487510
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x458e05
push 0x47
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_maincommonutils.cpp
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
call fcn.0040b9b0
push 0x205
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x320]
call fcn.004073a0
mov ebx, eax
push str.post:
push ebx
mov byte [ebp - 4], 0x1e
call fcn.004082d0
test edi, edi
mov eax, 0x6407a4
cmovne eax, edi
push eax
push ebx
call fcn.00410700
add esp, 0x10
call fcn.00487510
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.004083f0
lea ecx, [ebp - 0x280]
call fcn.00407b80
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0x18
call fcn.00407b80
call fcn.00487510
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x458ef9
push 0x47
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_maincommonutils.cpp
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
call fcn.0040b9b0
push 0x206
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x320]
call fcn.004073a0
mov ebx, eax
push str.get_cloud_cfg_result_is_error__result:
push ebx
mov byte [ebp - 4], 0x21
call fcn.004082d0
cmp dword [ebp - 0x228], 0x10
lea ecx, [ebp - 0x23c]
cmovae ecx, dword [ebp - 0x23c]
push ecx
push ebx
call fcn.004082d0
add esp, 0x10
call fcn.00487510
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.004083f0
lea ecx, [ebp - 0x280]
call fcn.00407b80
lea ecx, [ebp - 0x268]
call fcn.00407b80
or ebx, 0xffffffff
xor eax, eax
lea ecx, [ebp - 0x23c]
cmp byte [ebp - 0x241], al
setne al
lea eax, [eax*2 - 1]
mov dword [ebp - 0x240], eax
call fcn.00407b80
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458f3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458f59
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45909e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45909e
mov edx, dword [ebp - 0x250]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x458fa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x248]
call fcn.00487510
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x459094
push 0x47
push str.d:jenkins.jenkinsworkspacemgame_aichat_aichat_maincommonutils.cpp
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0xf
mov byte [ebp - 0x268], al
call fcn.0040b9b0
push 3
push 0x63fdb8
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
call fcn.0040b9b0
push 0x20c
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x320]
call fcn.004073a0
mov ebx, eax
push str.get_cloud_cfg_failed_
push ebx
mov byte [ebp - 4], 0x24
call fcn.00410700
push dword [ebp - 0x240]
push ebx
call fcn.004082d0
add esp, 0x10
call fcn.00487510
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.004083f0
lea ecx, [ebp - 0x280]
call fcn.00407b80
lea ecx, [ebp - 0x268]
call fcn.00407b80
or ebx, 0xffffffff
mov dword [ebp - 0x240], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4590b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x284]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4590d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4590e9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x459104
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb391
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
push 0x80004005
call fcn.00408a00
call fcn.0047fc34
int3