Function at 0x415690
Capabilities:
Create http request

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x45a160
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4767b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor esi, esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x38], esi
cmp dword [ebx + 0xc0], esi
je 0x415709
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0x4c]
push ecx
lea edx, [ebp + 0x50]
push edx
mov eax, ebx
call fcn.004165d0
mov eax, dword [ebp + 0x44]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, esi
je 0x4156f5
push eax
call edi
mov eax, dword [ebp + 0x4c]
cmp eax, esi
je 0x4156ff
push eax
call edi
mov eax, dword [ebp + 0x50]
cmp eax, esi
je 0x415709
push eax
call edi
mov eax, 1
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp - 4], esi
mov eax, dword [ebx + 8]
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x54], esi
cmp eax, esi
jne 0x41572f
mov eax, 0x466390
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x415732
sub eax, edx
sar eax, 1
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x28], esi
cmp dword [ebx + 0x64], esi
je 0x415db0
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x60]
mov eax, dword [eax]
mov esi, dword [ebx + 0x48]
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x6c], eax
jmp 0x415770
mov edi, dword [ebx + 0x60]
mov eax, dword [ebx + 0x48]
test esi, esi
je 0x41577e
cmp esi, eax
je 0x415783
call fcn.00442f1e
cmp dword [ebp + 0x6c], edi
je 0x4157c3
test esi, esi
jne 0x4157bf
call fcn.00442f1e
mov eax, dword [ebp + 0x6c]
cmp eax, dword [esi + 0x18]
jne 0x41579e
call fcn.00442f1e
mov ecx, dword [ebp + 0x6c]
test byte [ecx + 0x14], 1
je 0x4157b2
lea eax, [ebp + 0x48]
lea edx, [ebp + 0x54]
call fcn.00416e20
lea esi, [ebp + 0x68]
call fcn.00417120
mov esi, dword [ebp + 0x68]
jmp 0x415770
mov esi, dword [esi]
jmp 0x415791
cmp dword [ebp + 0x54], 0
je 0x415815
mov esi, dword [ebp + 0x54]
push 4
push esi
call fcn.00443a61
add esp, 8
mov dword [ebp + 0x64], eax
test eax, eax
jne 0x4157e6
lea edi, [eax + 0x66]
call fcn.00412390
xor ecx, ecx
cmp esi, ecx
seta dl
test dl, dl
je 0x4157fb
mov dword [eax + ecx*4], 0xffffffff
inc ecx
jmp 0x4157e8
push 4
push esi
call fcn.00443a61
add esp, 8
mov dword [ebp + 0x5c], eax
test eax, eax
jne 0x415815
lea edi, [eax + 0x66]
call fcn.00412390
mov esi, dword [ebx + 0x48]
xor eax, eax
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x60], eax
mov eax, dword [ebx + 0x60]
mov eax, dword [eax]
mov dword [ebp + 0x68], esi
mov edi, eax
mov dword [ebp + 0x6c], edi
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x34], edx
test esi, esi
je 0x415841
cmp esi, eax
je 0x415846
call fcn.00442f1e
cmp edi, dword [ebp - 0x34]
je 0x415d8f
test esi, esi
jne 0x4158f7
call fcn.00442f1e
cmp edi, dword [esi + 0x18]
jne 0x415866
call fcn.00442f1e
mov ecx, dword [ebp + 0x30]
add ecx, 4
test byte [edi + 0x14], 1
jne 0x415a19
mov eax, dword [ebp + 0x70]
push eax
lea eax, [ebp - 0x18]
call fcn.00417480
mov eax, dword [eax]
add esp, 4
push eax
mov eax, 0x2b
lea esi, [ebp - 0x1c]
call fcn.004174b0
mov esi, dword [eax]
mov eax, dword [ebp + 0x68]
add esp, 4
cmp dword [ebx + 0x18], 0
je 0x415906
test eax, eax
jne 0x4158fe
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4158b8
call fcn.00442f1e
mov eax, dword [edi + 0xc]
push eax
call fcn.004131b0
add esp, 4
mov ecx, eax
push esi
lea eax, [ebp - 0x2c]
call fcn.00417480
mov esi, dword [eax]
mov eax, dword [ebp + 0x68]
add esp, 4
test eax, eax
jne 0x415902
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4158ec
call fcn.00442f1e
mov edi, dword [edi + 0x10]
push edi
call fcn.004131b0
jmp 0x41595e
mov esi, dword [esi]
jmp 0x41585c
mov eax, dword [eax]
jmp 0x4158ae
mov eax, dword [eax]
jmp 0x4158e2
test eax, eax
jne 0x415981
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x41591b
call fcn.00442f1e
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.00412fd0
add esp, 4
mov ecx, eax
push esi
lea eax, [ebp + 8]
call fcn.00417480
mov esi, dword [eax]
mov eax, dword [ebp + 0x68]
add esp, 4
test eax, eax
jne 0x415985
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415952
call fcn.00442f1e
mov edi, dword [edi + 0x10]
mov ecx, dword [ebx + 0x1c]
push edi
call fcn.00412fd0
or ecx, 0xffffffff
mov edi, eax
sub ecx, esi
add esp, 4
cmp ecx, edi
jae 0x415989
push 0x46fd6c
lea edx, [ebp + 0x1c]
push edx
mov dword [ebp + 0x1c], 0x216
call fcn.00444ae1
mov eax, dword [eax]
jmp 0x415911
mov eax, dword [eax]
jmp 0x415948
or eax, 0xffffffff
sub eax, dword [ebp + 0x60]
add esi, edi
cmp eax, edi
jae 0x4159aa
push 0x46fd6c
lea ecx, [ebp + 0x18]
push ecx
mov dword [ebp + 0x18], 0x216
call fcn.00444ae1
add dword [ebp + 0x60], edi
push esi
mov eax, 2
lea esi, [ebp - 0x30]
call fcn.004174b0
mov edx, dword [eax]
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebp + 0x68]
mov esi, dword [eax]
mov eax, dword [ebx + 0x48]
add esp, 4
mov dword [ebp + 0x70], edx
test ecx, ecx
je 0x4159d6
cmp ecx, eax
je 0x4159db
call fcn.00442f1e
cmp dword [ebp + 0x6c], esi
jne 0x415d35
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x415a15
call fcn.00442f1e
xor eax, eax
mov esi, dword [ebp + 0x6c]
cmp esi, dword [eax + 0x18]
jne 0x4159ff
call fcn.00442f1e
mov ecx, dword [esi + 0xc]
xor eax, eax
mov dword [ebp + 0x34], ecx
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
jmp 0x415d35
mov eax, dword [eax]
jmp 0x4159f2
mov edx, dword [ebp + 0x70]
push edx
lea eax, [ebp]
call fcn.00417480
mov eax, dword [eax]
add esp, 4
push eax
mov eax, 0x36
lea esi, [ebp - 0x28]
call fcn.004174b0
mov eax, dword [eax]
mov esi, dword [ebp + 0x68]
add esp, 4
cmp dword [ebx + 0x18], 0
mov dword [ebp + 0x70], eax
je 0x415ab4
test esi, esi
jne 0x415aac
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415a5e
call fcn.00442f1e
mov eax, dword [edi + 0xc]
push eax
call fcn.004131b0
mov ecx, dword [ebp + 0x70]
add esp, 4
push ecx
mov ecx, eax
lea eax, [ebp + 0x10]
call fcn.00417480
mov edx, dword [eax]
add esp, 4
mov dword [ebp + 0x70], edx
test esi, esi
jne 0x415ab0
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415a95
call fcn.00442f1e
mov eax, dword [edi + 0x10]
push eax
call fcn.004131b0
mov ecx, dword [ebp + 0x70]
add esp, 4
push ecx
mov ecx, eax
lea eax, [ebp - 0x3c]
jmp 0x415b23
mov eax, dword [esi]
jmp 0x415a54
mov eax, dword [esi]
jmp 0x415a8b
test esi, esi
jne 0x415b93
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415acd
call fcn.00442f1e
mov eax, dword [edi + 0xc]
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.00412fd0
mov edx, dword [ebp + 0x70]
add esp, 4
mov ecx, eax
push edx
lea eax, [ebp - 0x20]
call fcn.00417480
mov eax, dword [eax]
add esp, 4
mov dword [ebp + 0x70], eax
test esi, esi
jne 0x415b9a
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415b0b
call fcn.00442f1e
mov eax, dword [edi + 0x10]
mov ecx, dword [ebx + 0x1c]
push eax
call fcn.00412fd0
mov ecx, dword [ebp + 0x70]
add esp, 4
push ecx
mov ecx, eax
lea eax, [ebp + 0xc]
call fcn.00417480
mov eax, dword [eax]
add esp, 4
push eax
mov eax, 0x12
lea esi, [ebp + 4]
call fcn.004174b0
mov esi, dword [ebp + 0x68]
mov edx, dword [eax]
add esp, 4
mov dword [ebp + 0x70], edx
mov dword [ebp + 0x48], 0
test esi, esi
jne 0x415ba1
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415b62
call fcn.00442f1e
cmp dword [edi + 0x10], 0
je 0x415bfa
test esi, esi
jne 0x415ba5
call fcn.00442f1e
cmp edi, dword [esi + 0x18]
jne 0x415b7f
call fcn.00442f1e
mov eax, dword [edi + 0x10]
push 0
test eax, eax
jne 0x415ba9
push eax
push str.CHttpToolW::OpenFile:_szFilePath_can_not_be_NULL.
call fcn.004125b0
mov eax, dword [esi]
jmp 0x415ac3
mov eax, dword [esi]
jmp 0x415b01
mov eax, dword [esi]
jmp 0x415b58
mov esi, dword [esi]
jmp 0x415b75
push 0x8000080
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x64]
mov dword [ecx + esi*4], eax
cmp eax, 0xffffffff
je 0x415bfd
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x415c38
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415be6
call fcn.00442f1e
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x58]
mov esi, dword [edi + 0x10]
mov eax, dword [edx + eax*4]
call fcn.00412d20
mov dword [ebp + 0x48], eax
mov esi, dword [ebp + 0x58]
cmp dword [ebx + 4], 0
je 0x415c40
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + esi*4], 0xffffffff
jne 0x415c40
mov eax, dword [ebp + 0x68]
test eax, eax
jne 0x415c3c
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415c24
call fcn.00442f1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x10]
push eax
mov ebx, 0x25b
call fcn.00412480
mov eax, dword [eax]
jmp 0x415bdc
mov eax, dword [eax]
jmp 0x415c1a
mov edx, dword [ebp + 0x64]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [edx + esi*4]
call fcn.00412d70
mov ecx, dword [ebp + 0x5c]
mov dword [ecx + esi*4], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c57
sub eax, edx
mov edx, dword [ebp + 0x70]
mov ecx, eax
push edx
lea eax, [ebp - 0x14]
call fcn.00417480
mov eax, dword [eax]
mov ecx, dword [ebp + 0x48]
or edx, 0xffffffff
sub edx, eax
add esp, 4
cmp edx, ecx
jae 0x415c94
push 0x46fd6c
lea eax, [ebp + 0x24]
push eax
mov dword [ebp + 0x24], 0x216
call fcn.00444ae1
or edx, 0xffffffff
sub edx, dword [ebp + 0x60]
add eax, ecx
cmp edx, ecx
jae 0x415cb5
push 0x46fd6c
lea eax, [ebp + 0x20]
push eax
mov dword [ebp + 0x20], 0x216
call fcn.00444ae1
mov ecx, dword [ebp + 0x48]
add dword [ebp + 0x60], ecx
push eax
mov eax, 2
lea esi, [ebp + 0x14]
call fcn.004174b0
mov edx, dword [eax]
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x68]
inc dword [ebp + 0x58]
mov eax, dword [ebx + 0x48]
add esp, 4
mov dword [ebp + 0x70], edx
mov dword [ebp - 0x40], ecx
test esi, esi
je 0x415cea
cmp esi, eax
je 0x415cef
call fcn.00442f1e
cmp edi, dword [ebp - 0x40]
jne 0x415d35
test esi, esi
jne 0x415d56
call fcn.00442f1e
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x415d09
call fcn.00442f1e
mov edx, dword [edi + 0xc]
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x28], 1
test esi, esi
jne 0x415d5a
call fcn.00442f1e
cmp edi, dword [esi + 0x18]
jne 0x415d2f
call fcn.00442f1e
mov ecx, dword [edi + 0x10]
mov dword [ebp + 0x2c], ecx
cmp dword [ebp + 0x68], 0
jne 0x415d40
call fcn.00442f1e
mov edi, dword [ebp + 0x6c]
cmp byte [edi + 0x19], 0
je 0x415d5e
call fcn.00442f1e
mov esi, dword [ebp + 0x68]
jmp 0x415830
mov eax, dword [esi]
jmp 0x415cff
mov esi, dword [esi]
jmp 0x415d25
mov eax, dword [edi + 8]
cmp byte [eax + 0x19], 0
jne 0x415d73
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x19], 0
jne 0x415d87
jmp 0x415d67
mov eax, dword [edi + 4]
cmp byte [eax + 0x19], 0
jne 0x415d85
cmp edi, dword [eax + 8]
jne 0x415d85
mov edi, eax
jmp 0x415d73
mov edi, eax
mov esi, dword [ebp + 0x68]
jmp 0x41582d
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x30]
add ecx, 6
push edx
lea eax, [ebp + 0x14]
call fcn.00417480
mov eax, dword [eax]
add esp, 4
jmp 0x415db6
add eax, 8
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x70], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x38]
test eax, eax
jne 0x415e0b
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
mov esi, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
test eax, eax
jne 0x415ddf
mov eax, str.Ryeol_HTTP_Client_Class
push ecx
push edx
push esi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
jne 0x415e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
xor ecx, ecx
mov ebx, 0x192
call fcn.00412480
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x44], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
jne 0x415e2b
push eax
mov edx, str.https:__open.t.qq.com_api_t_add_pic
mov ecx, ebx
call fcn.00414550
mov ecx, eax
mov dword [ebp + 0x40], ecx
mov dword [ebp + 0x4c], 0
mov edx, dword [ebp + 0x7c]
push edx
push ecx
push ebx
mov ecx, str.https:__open.t.qq.com_api_t_add_pic
call fcn.004147c0
push eax
mov edi, ebx
mov dword [ebp + 0x3c], eax
call fcn.00414990
mov eax, dword [ebx + 0x14]
xor esi, esi
cmp eax, esi
jne 0x415e54
mov eax, str.multipart_form_data__boundary____RYEOL_FB3B405B7EAE495aB0C0295C54D4E096_
mov edi, dword [ebp + 0x3c]
mov ecx, dword [ebx + 0x1c]
push eax
push str.Content_Type
mov edx, edi
call fcn.00412aa0
mov eax, dword [ebp + 0x70]
add esp, 8
push eax
mov ecx, edi
call fcn.00412bd0
add esp, 4
lea eax, [ebx + 0x44]
call fcn.00413760
lea edi, [ebx + 0xbc]
mov dword [ebp + 0x7c], eax
mov eax, dword [edi + 0x28]
cmp eax, esi
je 0x415e9c
push eax
call fcn.00443244
add esp, 4
mov dword [edi + 0x28], esi
mov eax, dword [edi + 0x2c]
cmp eax, esi
je 0x415eaf
push eax
call fcn.00443244
add esp, 4
mov dword [edi + 0x2c], esi
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x7c]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x54]
mov dword [edi + 0x10], edx
mov edx, dword [ebp + 0x44]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp + 0x4c]
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], esi
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], esi
mov dword [edi + 4], 1
mov dword [ebx + 0x108], edx
mov edx, dword [ebp + 0x40]
mov dword [ebx + 0x104], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebx + 0x110], ecx
mov ecx, dword [ebp + 0x64]
mov dword [ebx + 0x10c], edx
mov edx, dword [ebp + 0x5c]
mov dword [ebx + 0x114], eax
mov dword [ebx + 0xf4], ecx
mov dword [ebp + 0x64], esi
mov dword [ebx + 0xf8], edx
mov dword [ebp + 0x5c], esi
mov dword [ebx + 0x118], esi
cmp dword [ebx + 0x64], esi
je 0x415f95
lea esi, [ebx + 0x84]
push edi
mov eax, esi
call fcn.00413be0
mov edi, dword [ebp + 0x28]
push edi
mov ecx, esi
call fcn.00413df0
test edi, edi
je 0x415f63
mov ebx, dword [ebp + 0x2c]
inc dword [esi + 0x24]
lea edi, [esi + 0x2c]
call fcn.00413c60
jmp 0x415f7a
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x415f7a
push eax
call fcn.00443244
add esp, 4
mov dword [esi + 0x2c], 0
mov ebx, dword [ebp + 0x34]
inc dword [esi + 0x1c]
lea edi, [esi + 0x28]
call fcn.00413c60
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x74
mov esp, ebp
pop ebp
ret 4