Function at 0x40f8f0
Capabilities:
Connect to http server
Create http request
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449eab
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x466124]
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 dword [ebp - 4], 3
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 0x10
push 0x45dc14
cmovae eax, dword [ebp + 0x38]
push eax
call fcn.0042e280
add esp, 8
test eax, eax
je 0x41046f
push eax
call fcn.0042e866
add esp, 4
cmp dword [ebp + 0x18], 0
je 0x41046f
cmp dword [ebp + 0x30], 0
je 0x41046f
cmp dword [ebp + 0x60], 0
je 0x41046f
sub esp, 0x18
lea eax, [ebp + 0x38]
mov edi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004233e0
call fcn.00409e20
mov ebx, eax
lea esi, [ebp - 0x13]
add esp, 0x18
test ebx, ebx
jns 0x40f9c0
neg ebx
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x40f993
dec esi
mov byte [esi], 0x2d
jmp 0x40f9e2
mov eax, 0xcccccccd
dec esi
mul ebx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub bl, cl
add bl, 0x30
mov byte [esi], bl
mov ebx, edx
test ebx, ebx
jne 0x40f9c0
lea eax, [ebp - 0x13]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
cmp esi, eax
je 0x40fa08
sub eax, esi
mov ecx, edi
push eax
push esi
call fcn.004242f0
lea ecx, [ebp - 0x98]
call fcn.00404ef0
add esp, 0x18
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
mov ecx, esp
push 0x466ffc
call fcn.004233e0
lea ecx, [ebp - 0xf4]
call fcn.004061f0
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x80]
call fcn.00424990
add esp, 4
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0xe0]
cmp edx, 0x10
jb 0x40fa8d
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41058d
push edx
push ecx
call fcn.0042a0d6
add esp, 8
sub esp, 0x18
mov dword [ebp - 0xe4], 0
mov ecx, esp
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
push 0x466da4
call fcn.004233e0
lea ecx, [ebp - 0x188]
call fcn.004061f0
add esp, 0x18
mov edi, eax
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 8
push eax
sub esp, 0x18
mov ecx, esp
push 0x4671c4
call fcn.004233e0
lea ecx, [ebp - 0x170]
call fcn.004061f0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 9
push eax
sub esp, 0x18
mov ecx, esp
push 0x46726c
call fcn.004233e0
lea ecx, [ebp - 0x158]
call fcn.004061f0
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x140]
call fcn.00424990
add esp, 4
push esi
push eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
push dword [ebp - 0xc4]
call fcn.004257e0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x128]
call fcn.00424990
add esp, 4
push edi
push eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
push dword [ebp - 0xc4]
call fcn.004257e0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40fba5
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40fbf8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fbee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x40fc48
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x144]
cmp edx, 0x10
jb 0x40fca1
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40fcfa
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fcf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
mov byte [ebp - 0x170], 0
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x174]
cmp edx, 0x10
jb 0x40fd53
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410592
push edx
push ecx
call fcn.0042a0d6
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x178], 0
mov ecx, esp
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
push 0x46723c
call fcn.004233e0
lea ecx, [ebp - 0x10c]
call fcn.004061f0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0x15
push eax
sub esp, 0x18
mov ecx, esp
push 0x4673ec
call fcn.004233e0
lea ecx, [ebp - 0x1a0]
call fcn.004061f0
add esp, 0x18
mov edx, eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0xf4]
call fcn.00424990
add esp, 4
push esi
push eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x50]
push dword [ebp - 0xc4]
call fcn.004257e0
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0xe0]
cmp edx, 0x10
jb 0x40fe1b
mov ecx, dword [ebp - 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410597
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0xf
mov byte [ebp - 0xf4], 0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x18c]
cmp edx, 0x10
jb 0x40fe74
mov ecx, dword [ebp - 0x1a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410597
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0xf
mov byte [ebp - 0x1a0], 0
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0xf8]
cmp edx, 0x10
jb 0x40fecd
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fec3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410597
push edx
push ecx
call fcn.0042a0d6
add esp, 8
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0xfc], 0
cmovae eax, dword [ebp - 0x80]
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
cmp dword [ebp - 0x3c], 0x10
mov ebx, eax
mov dword [ebp - 0xf8], 0xf
cmovae ecx, dword [ebp - 0x50]
mov byte [ebp - 0x10c], 0
mov dword [ebp - 0xc8], eax
lea edx, [ebx + 1]
mov dword [ebp - 0xc4], ecx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40ff20
sub ebx, edx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff30
xorps xmm0, xmm0
mov dword [ebp - 0xd4], 0
sub ecx, edx
movlpd qword [ebp - 0xbc], xmm0
push 0x10000
mov dword [ebp - 0xdc], ecx
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa0], xmm0
call fcn.0042a0e4
push 0x10000
push 0
push eax
mov dword [ebp - 0xd8], eax
call fcn.0042b6f0
add esp, 0x10
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x4c], 0x10
lea ecx, [ebp + 0x38]
push 0
cmovae ecx, dword [ebp + 0x38]
push 0x8000080
push 3
push 0
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x2c], edi
sub esp, 0x18
mov byte [ebp - 4], 0x1c
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004233e0
call fcn.00409e20
add esp, 0x18
mov dword [ebp - 0xd0], eax
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
cmovae ecx, dword [ebp + 8]
push 0
push 3
push 0
push 0
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x38], esi
push 0
push 0
push 0
mov byte [ebp - 4], 0x1e
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push eax
sub esp, 0x18
mov ecx, esp
push 0x4677c0
call fcn.004233e0
lea ecx, [ebp - 0x10c]
call fcn.004061f0
add esp, 0x18
cmp dword [eax + 0x14], 0x10
jb 0x410056
mov eax, dword [eax]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edx, dword [ebp - 0xf8]
mov esi, eax
cmp edx, 0x10
jb 0x41009a
mov ecx, dword [ebp - 0x10c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410090
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41059c
push edx
push ecx
call fcn.0042a0d6
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
push dword [ebp - 0xcc]
push esi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov eax, dword [ebp - 0xdc]
add eax, dword [ebp - 0xd0]
push 0
add eax, ebx
mov dword [ebp - 0xc0], 0x28
push 8
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xc0]
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test ebx, ebx
je 0x410115
mov edi, dword [ebp - 0xc8]
nop word [eax + eax]
lea eax, [ebp - 0xc8]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x410112
add edi, dword [ebp - 0xc8]
sub ebx, dword [ebp - 0xc8]
jne 0x4100f0
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xd0]
test eax, eax
je 0x4101ac
sub eax, dword [ebp - 0xd4]
mov ecx, 4
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [ebp - 0x34]
push eax
push ecx
push dword [ebp - 0xd8]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410332
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xc8], eax
test ebx, ebx
je 0x41018c
mov edi, eax
lea eax, [ebp - 0xcc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x410186
add edi, dword [ebp - 0xcc]
sub ebx, dword [ebp - 0xcc]
jne 0x410164
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xd4]
add eax, ebx
cmp eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd0]
jb 0x410123
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4101e5
mov edi, dword [ebp - 0xc4]
nop dword [eax]
lea eax, [ebp - 0xc4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4101e2
add edi, dword [ebp - 0xc4]
sub ebx, dword [ebp - 0xc4]
jne 0x4101c0
mov edi, dword [ebp - 0x2c]
push 0
push 8
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4101ff
push esi
call ebx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x410209
push eax
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x410213
push eax
call ebx
test edi, edi
je 0x410223
cmp edi, 0xffffffff
je 0x410223
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x410257
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41024d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x41029d
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410293
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x4102e3
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4102d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x41046f
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
jmp 0x410465
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x41033f
push esi
call ebx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x410349
push eax
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x410353
push eax
call ebx
test edi, edi
je 0x410363
cmp edi, 0xffffffff
je 0x410363
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x410397
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41038d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x4103dd
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4103d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp edx, 0x10
jb 0x410423
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410419
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp edx, 0x10
jb 0x41046f
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a1
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4104a3
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410499
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a6
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4104e9
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4104df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a6
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x41052f
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410525
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a6
push edx
push ecx
call fcn.0042a0d6
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x410571
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410567
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4105a6
push edx
push ecx
call fcn.0042a0d6
add esp, 8
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.00429a60
mov esp, ebp
pop ebp
ret
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
call fcn.0042f0c9
int3