Function at 0x412120
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4984de
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x4bc100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x100], 0
mov edx, 0x4bcc28
cmp dword [0x4bcc3c], 7
mov ecx, 0x4bcc28
mov eax, dword [0x4bcc38]
cmova edx, dword [0x4bcc28]
cmova ecx, dword [0x4bcc28]
push ecx
lea eax, [edx + eax*2]
push eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00434cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str._gatelet23.php
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.00411660
mov byte [ebp - 4], 1
cmp dword [0x4bcc38], 0
je 0x412348
mov ecx, dword [ebp - 0xfc]
mov eax, 0x7fffffff
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 9
jb 0x412879
cmp dword [ecx + 0x14], 0xf
jbe 0x4121f0
mov ecx, dword [ecx]
push edx
push ecx
push 9
push str.agent_id
push ecx
push dword [ebp - 0x104]
lea ecx, [ebp - 0x44]
call fcn.0043d8b0
mov dword [ebp - 0x100], 1
push 0
push 0
push 0
push 0
push str.POSDATAGENT
mov byte [ebp - 4], 2
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x104], edi
test edi, edi
je 0x412302
cmp dword [ebp - 0x68], 7
lea eax, [ebp - 0x7c]
push 0
cmova eax, dword [ebp - 0x7c]
push 0x1bb
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0xf8], ecx
test ecx, ecx
jne 0x41226b
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x412302
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x800000
cmova eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push eax
push str.POST
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0xfc], esi
test esi, esi
jne 0x4122a2
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4122f7
push 4
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x3300
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
push 0
cmova ecx, dword [ebp - 0x44]
push eax
push eax
push ecx
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4122ee
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4123d4
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xf8]
call esi
push edi
call esi
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x412336
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41232c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x412382
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412378
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov ecx, dword [ebp - 0x68]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
cmp ecx, 7
jbe 0x4123cc
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4123c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
or eax, 0xffffffff
jmp 0x41285d
xorps xmm0, xmm0
mov dword [ebp - 0xf4], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xf4]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4124d5
mov eax, dword [ebp - 0xf4]
test eax, eax
je 0x4124d5
inc eax
push eax
call fcn.0046dfed
mov edi, eax
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xf4]
inc ecx
push ecx
push 0
push edi
call fcn.0046fd30
add esp, 0x10
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0xf4]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4124cc
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
sub eax, edx
mov dword [ebp - 0x108], ecx
push ecx
push edi
cmp ecx, eax
ja 0x4124a4
cmp dword [ebp - 0x4c], 0xf
lea esi, [ebp - 0x60]
lea eax, [ecx + edx]
cmova esi, dword [ebp - 0x60]
add esi, edx
mov dword [ebp - 0x50], eax
push esi
call fcn.0046f740
mov eax, dword [ebp - 0x108]
add esp, 0xc
mov byte [esi + eax], 0
mov esi, dword [ebp - 0xfc]
jmp 0x4124b0
push dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004378e0
push edi
mov byte [ebp - 4], 3
call fcn.0046db0a
add esp, 4
cmp dword [ebp - 0xf4], 0
ja 0x412402
jmp 0x4124d5
push edi
call fcn.0046db0a
add esp, 4
mov dword [ebp - 0xbc], 0
push 0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 8
call fcn.0042ebc0
cmp dword [ebp - 0x4c], 0xf
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x100], 3
cmova ecx, dword [ebp - 0x60]
mov dl, 1
add ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x4c], 0xf
push 0
cmova eax, dword [ebp - 0x60]
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x48], esi
mov dword [esi + 0x24], 0
push ecx
push eax
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 7
call fcn.00441390
add esp, 0x34
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
push ecx
push ecx
mov ecx, eax
call fcn.0043b890
lea ecx, [ebp - 0x1b0]
call fcn.0043af60
mov ecx, dword [ebp - 0x1bc]
test ecx, ecx
je 0x412575
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x1e0]
cmp ecx, eax
setne al
push eax
call edx
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
xorps xmm0, xmm0
lea ecx, [ebp - 0xb8]
push eax
movups xmmword [ebp - 0x90], xmm0
call fcn.00429b70
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0xb8]
movups xmmword [ebp - 0xf0], xmm0
call fcn.00429ac0
nop
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x90]
call fcn.00435090
test al, al
je 0x41270a
mov edi, dword [ebp - 0x90]
movzx eax, byte [edi]
cmp eax, 9
ja case.0x4125df.3
movzx eax, byte [eax + 0x412920]
jmp dword [eax*4 + 0x412910]
mov edi, dword [ebp - 0x8c]
add edi, 0x28
jmp 0x412606
mov edi, dword [ebp - 0x88]
jmp 0x412606
cmp dword [ebp - 0x84], 0
jne 0x4128c8
push ecx
mov ecx, edi
call fcn.00435180
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, eax
call fcn.00434bb0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa8]
mov esi, dword [ebp - 0x94]
cmp esi, 0xf
mov edx, dword [ebp - 0x98]
cmova ecx, dword [ebp - 0xa8]
push 7
push str.command
call fcn.00446f40
add esp, 8
test al, al
je 0x4126c2
push ecx
mov ecx, edi
call fcn.004352c0
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
call fcn.00434bb0
cmp dword [ebp - 0xbc], 0xf
lea eax, [ebp - 0xd0]
cmova eax, dword [ebp - 0xd0]
push eax
call fcn.0047c165
mov ecx, dword [ebp - 0xbc]
add esp, 4
cmp ecx, 0xf
jbe 0x4126bc
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4126b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4128be
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov esi, dword [ebp - 0x94]
mov byte [ebp - 4], 6
cmp esi, 0xf
jbe 0x4126fa
mov ecx, dword [ebp - 0xa8]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x4126f0
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4128c3
push esi
push ecx
call fcn.0046dfdf
add esp, 8
lea ecx, [ebp - 0x90]
call fcn.00429670
jmp 0x4125b0
lea ecx, [ebp - 0xb8]
call fcn.00429c30
push dword [ebp - 0xfc]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xf8]
call esi
push dword [ebp - 0x104]
call esi
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x412767
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41275d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x4127ad
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4127a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 7
jbe 0x4127f9
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4127ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
push ecx
push edx
call fcn.0046dfdf
add esp, 8
mov ecx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x41285b
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412851
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412908
jmp 0x412851
push ecx
push edx
call fcn.0046dfdf
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046dafc
mov esp, ebp
pop ebp
ret
call fcn.004028c0
push str.cannot_get_value
lea ecx, [ebp - 0xd0]
call fcn.0040e060
push ecx
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
push eax
mov edx, 0xd6
lea ecx, [ebp - 0x124]
call fcn.00436e60
add esp, 8
lea eax, [ebp - 0x124]
push 0x4ba2d0
push eax
call fcn.0046fcb4
call fcn.0047bff9
call fcn.0047bff9
push str.cannot_get_value
lea ecx, [ebp - 0xd0]
call fcn.0040e060
push ecx
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
push eax
mov edx, 0xd6
lea ecx, [ebp - 0x140]
call fcn.00436e60
add esp, 8
lea eax, [ebp - 0x140]
push 0x4ba2d0
push eax
call fcn.0046fcb4
call fcn.0047bff9
nop dword [eax]
jle 0x41293a
inc ecx
add dh, ah
and eax, 0x25f10041
inc ecx
add cl, bh
and eax, 0x1000041
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
int3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4bc100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], 1
cmp ecx, 0xf
jbe 0x4129be
push dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00437680
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], 0
xor edi, edi
cmp dword [eax + 0x10], edi
jbe 0x412a3e
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x10]
mov dword [ebp - 0x20], ecx
nop
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x4129da
mov ecx, dword [eax]
cmp dword [edx + 0x14], 0xf
lea eax, [ecx + edi]
mov dword [ebp - 0x24], eax
mov ecx, edx
jbe 0x4129ea
mov ecx, dword [edx]
mov esi, dword [ebp - 0x20]
xor edx, edx
mov eax, edi
div dword [esi]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dl, byte [edx + ecx]
xor dl, byte [eax]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x10], dl
cmp ecx, dword [esi + 0x14]
jae 0x412a23
cmp dword [esi + 0x14], 0xf
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
jbe 0x412a19
mov eax, dword [esi]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x412a32
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x18]
push 1
call fcn.004377a0
mov eax, dword [ebp - 0x14]
inc edi
mov edx, dword [ebp + 8]
cmp edi, dword [eax + 0x10]
jb 0x4129d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret