Function at 0x404e20
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5635eb
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5c2fd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x438], edi
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov ecx, edi
call fcn.0040e903
test edi, edi
jne 0x404e6c
xor ecx, ecx
jmp 0x404e6f
mov ecx, dword [edi + 0x20]
call fcn.004022e0
push dword [edi + 0x1b8]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + 0x20]
mov dword [edi + 0xd0], eax
call esi
push dword [edi + 0x1b8]
push 0
push 0x80
push dword [edi + 0x20]
call esi
mov dword [0x5cb958], 0x409dc2
mov dword [0x5cb954], 0x40a789
mov dword [0x5cb950], 0x40a666
call fcn.0041c142
push 0x208
lea ecx, [ebp - 0x420]
push ecx
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.00547cb8
movups xmm0, xmmword [0x5a4428]
add esp, 8
movups xmmword [eax + 2], xmm0
movq xmm0, qword [0x5a4438]
push 0
push 0x80
movq qword [eax + 0x12], xmm0
mov ecx, dword [0x5a4440]
push 3
mov dword [eax + 0x1a], ecx
mov cx, word [0x5a4444]
push 0
push 0
mov word [eax + 0x1e], cx
lea eax, [ebp - 0x420]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or esi, 0xffffffff
mov dword [ebp - 0x440], eax
cmp eax, esi
je 0x40588f
push 0x800
call fcn.0040abe1
mov esi, eax
add esp, 4
mov dword [ebp - 0x430], esi
test esi, esi
je 0x405880
push 0
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push 0x800
push esi
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405877
cmp dword [ebp - 0x43c], 0x800
jne 0x405877
mov eax, 1
lea ecx, [esi + 0x40]
sub eax, esi
mov edx, 0x40
mov dword [ebp - 0x42c], eax
mov eax, 2
mov edi, dword [ebp - 0x42c]
sub eax, esi
mov dword [ebp - 0x428], eax
mov eax, 3
sub eax, esi
mov dword [ebp - 0x424], eax
nop dword [eax]
mov eax, edx
add edx, 4
and eax, 0x3f
movzx eax, byte [eax + esi]
xor byte [ecx], al
lea eax, [edi + ecx]
and eax, 0x3f
movzx eax, byte [eax + esi]
xor byte [ecx + 1], al
mov eax, dword [ebp - 0x428]
add eax, ecx
and eax, 0x3f
movzx eax, byte [eax + esi]
xor byte [ecx + 2], al
mov eax, dword [ebp - 0x424]
add eax, ecx
and eax, 0x3f
movzx eax, byte [eax + esi]
xor byte [ecx + 3], al
add ecx, 4
cmp edx, 0x800
jl 0x404fe0
mov edi, dword [ebp - 0x438]
mov ecx, 1
mov eax, dword [edi + 0xd8]
lea edx, [edi + 0xd8]
mov dword [ebp - 0x42c], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x5c
or ecx, eax
jge 0x40506b
push 0x5c
mov ecx, edx
call fcn.00403170
mov ecx, dword [edi + 0xd8]
lea edx, [edi + 0xd8]
jmp 0x405071
mov ecx, dword [ebp - 0x42c]
cmp dword [ecx - 8], 0x5c
jl 0x405dfe
mov dword [ecx - 0xc], 0x5c
mov eax, dword [edx]
xor edx, edx
mov word [eax + 0xb8], dx
lea edx, [esi + 0x64]
call fcn.00407e05
mov eax, dword [edi + 0xd8]
test eax, eax
jne 0x4050a3
xor ecx, ecx
jmp 0x4050b9
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [edi + 0xd8]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0xd8]
mov word [eax + ecx*2], dx
mov ecx, 1
mov edx, dword [edi + 0x1bc]
mov dword [ebp - 0x424], edx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x400
or ecx, eax
jge 0x40511b
push 0x400
lea ecx, [edi + 0x1bc]
call fcn.00403170
mov edx, dword [edi + 0x1bc]
lea eax, [edi + 0x1bc]
mov dword [ebp - 0x424], edx
jmp 0x405121
lea eax, [edi + 0x1bc]
cmp dword [edx - 8], 0x400
jl 0x405e08
mov dword [edx - 0xc], 0x400
xor ecx, ecx
mov eax, dword [eax]
lea edx, [esi + 0xc0]
mov esi, dword [ebp - 0x424]
mov word [eax + 0x800], cx
mov ecx, esi
call fcn.00407e05
push 5
push str.http:
push esi
call fcn.0054e463
add esp, 0xc
test eax, eax
jne 0x4051a6
lea edx, [esi + 8]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x42c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405175
sub ecx, dword [ebp - 0x42c]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [esi + 0xa]
push eax
call fcn.00548950
mov eax, 0x73
add esp, 0xc
mov word [esi + 8], ax
mov eax, dword [edi + 0x1bc]
lea esi, [edi + 0x1bc]
test eax, eax
jne 0x4051ba
xor ecx, ecx
jmp 0x4051d0
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jl 0x405528
push 0x5a4454
push eax
call fcn.00547a3c
add esp, 8
test eax, eax
je 0x405528
mov edx, dword [esi]
sub eax, edx
sar eax, 1
test eax, eax
jle 0x405528
mov ecx, dword [edx - 0xc]
xor edi, edi
add eax, 8
cmovns edi, eax
mov dword [ebp - 0x434], edi
xor edi, edi
sub ecx, eax
mov eax, SysReAllocString
cmovns edi, ecx
mov ecx, dword [ebp - 0x434]
sub eax, ecx
mov dword [ebp - 0x42c], edi
cmp eax, edi
jl 0x405e62
lea eax, [edi + ecx]
mov ecx, dword [edx - 0xc]
sub ecx, dword [ebp - 0x434]
cmp eax, dword [edx - 0xc]
mov eax, dword [ebp - 0x434]
cmovle ecx, edi
cmp eax, dword [edx - 0xc]
mov edi, 0
cmovle edi, ecx
mov dword [ebp - 0x424], edi
mov edi, dword [ebp - 0x438]
test eax, eax
jne 0x40529d
mov eax, dword [ebp - 0x424]
cmp eax, dword [edx - 0xc]
jne 0x40529d
lea eax, [edx - 0x10]
push eax
call fcn.00407440
add esp, 4
add eax, 0x10
mov dword [ebp - 0x428], eax
jmp 0x4052ff
mov edx, dword [edx - 0x10]
test edx, edx
je 0x4052be
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x42c], ecx
cmp eax, 0x574af4
jne 0x405e12
test edx, edx
jne 0x4052db
call fcn.0040d5cc
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x42c], ecx
cmp eax, 0x574af4
jne 0x405e21
mov ecx, dword [esi]
mov eax, dword [ebp - 0x434]
push edx
push dword [ebp - 0x424]
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x428]
call fcn.00407200
mov eax, dword [ebp - 0x428]
mov ecx, 3
mov dword [ebp - 0x434], ecx
mov dword [ebp - 4], 0
lea edx, [edi + 0xdc]
mov ecx, dword [edx]
lea esi, [eax - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], ecx
cmp esi, ecx
je 0x405379
cmp dword [ecx + 0xc], 0
jl 0x40536e
mov edi, dword [ebp - 0x424]
mov ecx, dword [esi]
cmp ecx, dword [edi]
mov edi, dword [ebp - 0x438]
jne 0x40536e
push esi
call fcn.00407440
mov ecx, dword [ebp - 0x424]
add esp, 4
mov esi, eax
call fcn.00402f50
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x42c]
mov dword [edi + 0xdc], eax
jmp 0x405379
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.004029c0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4053be
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405e30
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405e30
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0xdc]
cmp dword [eax - 0xc], 0
jl 0x405528
push 0x5a4468
push eax
call fcn.00547a3c
mov esi, eax
add esp, 8
test esi, esi
je 0x405528
mov ecx, dword [edi + 0xdc]
sub esi, ecx
sar esi, 1
test esi, esi
jle 0x405528
cmp esi, dword [ecx - 0xc]
jl 0x405414
lea eax, [ecx - 0x10]
push eax
call fcn.00407440
add esp, 4
add eax, 0x10
mov dword [ebp - 0x428], eax
jmp 0x40545f
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x40542f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405e37
test ecx, ecx
jne 0x405446
call fcn.0040d5cc
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405e40
push ecx
push esi
push dword [edi + 0xdc]
lea ecx, [ebp - 0x428]
call fcn.00407200
mov eax, dword [ebp - 0x428]
mov dword [ebp - 4], 1
lea edx, [edi + 0xdc]
mov ecx, dword [edx]
lea esi, [eax - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], ecx
cmp esi, ecx
je 0x4054ce
cmp dword [ecx + 0xc], 0
jl 0x4054c3
mov edi, dword [ebp - 0x424]
mov ecx, dword [esi]
cmp ecx, dword [edi]
mov edi, dword [ebp - 0x438]
jne 0x4054c3
push esi
call fcn.00407440
mov ecx, dword [ebp - 0x424]
add esp, 4
mov esi, eax
call fcn.00402f50
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x42c]
mov dword [edi + 0xdc], eax
jmp 0x4054ce
push dword [eax - 0xc]
mov ecx, edx
push eax
call fcn.004029c0
mov ecx, 7
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x434], ecx
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405528
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405e50
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405e49
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x434], 7
mov edx, dword [ebp - 0x430]
lea ecx, [edx + 0xc0]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405537
sub ecx, esi
lea eax, [ecx + 0xc1]
mov ecx, 1
mov dword [ebp - 0x428], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x42c], eax
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x5c
or eax, ecx
jge 0x405585
push 0x5c
lea ecx, [edi + 0xe0]
call fcn.00403170
mov ecx, dword [edi + 0xe0]
mov edx, dword [ebp - 0x430]
jmp 0x40558b
mov ecx, dword [ebp - 0x42c]
cmp dword [ecx - 8], 0x5c
jl 0x405e6c
mov dword [ecx - 0xc], 0x5c
xor esi, esi
mov eax, dword [edi + 0xe0]
mov word [eax + 0xb8], si
mov esi, dword [ebp - 0x428]
add esi, edx
mov edx, esi
call fcn.00407e05
mov eax, dword [edi + 0xe0]
test eax, eax
jne 0x4055c8
xor ecx, ecx
jmp 0x4055de
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [edi + 0xe0]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0xe0]
mov word [eax + ecx*2], dx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x405600
mov eax, dword [ebp - 0x428]
sub esi, ecx
mov edx, dword [edi + 0x11c4]
inc eax
add eax, esi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
add eax, 0xffffff80
or eax, ecx
jge 0x405652
push 0x80
lea ecx, [edi + 0x11c4]
call fcn.00403170
mov edx, dword [edi + 0x11c4]
mov dword [ebp - 0x428], edx
cmp dword [edx - 8], 0x80
jl 0x405e76
mov esi, dword [ebp - 0x424]
xor ecx, ecx
add esi, dword [ebp - 0x430]
mov dword [edx - 0xc], 0x80
mov edx, esi
mov eax, dword [edi + 0x11c4]
mov word [eax + 0x100], cx
mov ecx, dword [ebp - 0x428]
call fcn.00407e05
mov eax, dword [edi + 0x11c4]
test eax, eax
jne 0x40569c
xor ecx, ecx
jmp 0x4056b2
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [edi + 0x11c4]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x11c4]
mov word [eax + ecx*2], dx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4056d3
mov eax, dword [ebp - 0x424]
sub esi, ecx
mov edx, dword [edi + 0x11c8]
inc eax
add eax, esi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
add eax, 0xffffff80
or eax, ecx
jge 0x405725
push 0x80
lea ecx, [edi + 0x11c8]
call fcn.00403170
mov edx, dword [edi + 0x11c8]
mov dword [ebp - 0x428], edx
cmp dword [edx - 8], 0x80
jl 0x405e80
mov esi, dword [ebp - 0x424]
xor ecx, ecx
add esi, dword [ebp - 0x430]
mov dword [edx - 0xc], 0x80
mov edx, esi
mov eax, dword [edi + 0x11c8]
mov word [eax + 0x100], cx
mov ecx, dword [ebp - 0x428]
call fcn.00407e05
mov eax, dword [edi + 0x11c8]
test eax, eax
jne 0x40576f
xor ecx, ecx
jmp 0x405785
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [edi + 0x11c8]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x11c8]
mov word [eax + ecx*2], dx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4057a6
mov eax, dword [ebp - 0x424]
sub esi, ecx
mov edx, dword [edi + 0x11cc]
inc eax
add eax, esi
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
add eax, 0xffffff80
or eax, ecx
jge 0x4057f8
push 0x80
lea ecx, [edi + 0x11cc]
call fcn.00403170
mov edx, dword [edi + 0x11cc]
mov dword [ebp - 0x428], edx
cmp dword [edx - 8], 0x80
jl 0x405e8a
mov esi, dword [ebp - 0x430]
xor ecx, ecx
mov dword [edx - 0xc], 0x80
mov eax, dword [edi + 0x11cc]
mov edx, dword [ebp - 0x42c]
mov word [eax + 0x100], cx
mov ecx, dword [ebp - 0x428]
lea edx, [edx + esi]
call fcn.00407e05
mov eax, dword [edi + 0x11cc]
test eax, eax
jne 0x405843
xor ecx, ecx
jmp 0x405859
push dword [eax - 8]
push eax
call fcn.0054e2ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x405dfe
mov eax, dword [edi + 0x11cc]
cmp ecx, dword [eax - 8]
jg 0x405dfe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi + 0x11cc]
mov word [eax + ecx*2], dx
push esi
call fcn.0040abdc
add esp, 4
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [edi + 0x1bc]
cmp dword [eax - 0xc], 0
je 0x405d51
mov eax, dword [edi + 0xd8]
cmp dword [eax - 0xc], 0
je 0x405d51
mov eax, dword [edi + 0xe0]
cmp dword [eax - 0xc], 0
je 0x405d51
push 0x5a3e3c
lea ecx, [ebp - 0x430]
call fcn.00402b80
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.00411eea
mov byte [ebp - 4], 3
mov eax, dword [edi + 0xd8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x405909
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405e94
test ecx, ecx
jne 0x405928
call fcn.0040d5cc
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405e9d
test ecx, ecx
je 0x405ea6
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x574af4
jne 0x405eb0
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea edi, [eax + 0x10]
mov eax, dword [ebp - 0x434]
or eax, 8
mov dword [ebp - 0x440], edi
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x438]
mov eax, dword [eax + 0xd8]
mov dword [ebp - 0x42c], eax
mov edx, dword [eax - 0xc]
mov dword [ebp - 0x428], edx
lea esi, [edx + 3]
test esi, esi
js 0x405eb7
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4059ac
push esi
lea ecx, [ebp - 0x440]
call fcn.00403170
mov edi, dword [ebp - 0x440]
mov edx, dword [ebp - 0x428]
push edx
push dword [ebp - 0x42c]
push edx
push edi
call fcn.00402ec0
mov eax, dword [ebp - 0x428]
add esp, 0x10
lea ecx, [edi + eax*2]
test ecx, ecx
jne 0x4059dc
call fcn.0054d151
mov dword [eax], 0x16
call fcn.0054d095
jmp 0x4059ed
mov eax, dword [0x5a446c]
mov dword [ecx], eax
mov ax, word [0x5a4470]
mov word [ecx + 4], ax
cmp esi, dword [edi - 8]
jg 0x405dfe
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov byte [ebp - 4], 4
lea eax, [edi - 0x10]
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x44c], eax
test ecx, ecx
je 0x405a27
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405ec1
test ecx, ecx
jne 0x405a46
call fcn.0040d5cc
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
cmp eax, 0x574af4
jne 0x405eca
test ecx, ecx
je 0x405ed3
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x574af4
jne 0x405edd
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
mov ecx, dword [ebp - 0x434]
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x430]
or ecx, 0x10
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x428], esi
mov ecx, dword [eax - 0xc]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x424], eax
lea edx, [eax + ecx]
test edx, edx
js 0x405ee4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x405ac1
push edx
lea ecx, [ebp - 0x428]
call fcn.00403170
mov esi, dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
mov edi, dword [ebp - 0x424]
push edi
push esi
call fcn.00402ec0
mov eax, dword [ebp - 0x42c]
push eax
push dword [ebp - 0x444]
push eax
lea eax, [esi + edi*2]
push eax
call fcn.00402ec0
mov eax, dword [ebp - 0x42c]
add esp, 0x20
add eax, edi
cmp eax, dword [esi - 8]
jg 0x405dfe
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edi, [esi - 0x10]
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
mov dword [ebp - 0x444], ecx
cmp edi, ecx
je 0x405b5b
cmp dword [ecx + 0xc], 0
jl 0x405b4c
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x405b4c
push edi
call fcn.00407440
mov ecx, dword [ebp - 0x444]
add esp, 4
mov esi, eax
call fcn.00402f50
lea eax, [esi + 0x10]
mov dword [ebp - 0x430], eax
jmp 0x405b5b
push dword [esi - 0xc]
lea ecx, [ebp - 0x430]
push esi
call fcn.004029c0
mov eax, dword [ebp - 0x448]
or esi, 0xffffffff
and eax, 0xffffffef
mov byte [ebp - 4], 3
mov dword [ebp - 0x434], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405bb2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405eee
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405eee
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x405bb8
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x44c]
mov eax, esi
mov byte [ebp - 4], 2
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x405bfb
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405ef5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405ef5
push 0
push dword [edx + 4]
call edi
push dword [ebp - 0x430]
mov edi, dword [ebp - 0x438]
mov ecx, edi
call fcn.00417519
push 0x5a3e3c
lea ecx, [ebp - 0x43c]
call fcn.00402b80
mov edx, 0xef17
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x43c]
call fcn.004075b0
push dword [edi + 0xd8]
lea eax, [ebp - 0x430]
push dword [edi + 0xe0]
push dword [ebp - 0x43c]
push eax
call fcn.00403320
add esp, 0x10
mov ecx, edi
push 0x3e8
call fcn.004170da
test eax, eax
je 0x405c70
push dword [ebp - 0x430]
mov ecx, eax
call fcn.00417519
mov eax, dword [edi + 0x11c4]
cmp dword [eax - 0xc], 0
je 0x405c9b
mov eax, dword [edi + 0x11c8]
cmp dword [eax - 0xc], 0
je 0x405c9b
mov eax, dword [edi + 0x11cc]
cmp dword [eax - 0xc], 0
je 0x405c9b
mov esi, 1
jmp 0x405c9d
xor esi, esi
push 1
mov ecx, edi
call fcn.004170da
test eax, eax
je 0x405cb2
push esi
mov ecx, eax
call fcn.0041706c
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x43c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x405cfd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405efe
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405efe
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x430]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x405dc8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x574af4
jne 0x405f07
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x405f07
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405dc8
push 0x5a3e3c
lea ecx, [ebp - 0x424]
call fcn.00402b80
mov edx, 0xef19
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x424]
call fcn.004075b0
push 0x3e8
mov ecx, edi
call fcn.004170da
test eax, eax
je 0x405d95
push dword [ebp - 0x424]
mov ecx, eax
call fcn.00417519
push 1
mov ecx, edi
call fcn.004170da
test eax, eax
je 0x405dab
push 0
mov ecx, eax
call fcn.0041706c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], esi
dec esi
test esi, esi
jmp 0x405d18
push 0
lea ecx, [edi + 0xe8]
call fcn.0041756b
push 0
mov ecx, edi
call fcn.004148b2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00546259
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403220
push 0x80070057
call fcn.00403220
mov ecx, edx
call dword [ebp - 0x42c]
mov edx, eax
jmp 0x4052ba
mov ecx, edx
call dword [ebp - 0x42c]
mov edx, eax
jmp 0x4052db
call edx
jmp 0x4053be
call edx
mov ecx, eax
jmp 0x40542b
call edx
mov ecx, eax
jmp 0x405446
call edx
jmp 0x40551e
call edx
mov ecx, 7
mov dword [ebp - 0x434], ecx
jmp 0x405528
push 0x80070216
call fcn.00403220
push 0x80070057
call fcn.00403220
push 0x80070057
call fcn.00403220
push 0x80070057
call fcn.00403220
push 0x80070057
call fcn.00403220
call edx
mov ecx, eax
jmp 0x405905
call edx
mov ecx, eax
jmp 0x405920
push 0x80004005
call fcn.00403220
call edx
jmp 0x40593f
push 0x80070057
call fcn.00403220
call edx
mov ecx, eax
jmp 0x405a23
call edx
mov ecx, eax
jmp 0x405a3e
push 0x80004005
call fcn.00403220
call edx
jmp 0x405a5d
push 0x80070057
call fcn.00403220
call edx
jmp 0x405bb2
mov ecx, edx
call esi
jmp 0x405bfb
mov ecx, edx
call esi
jmp 0x405cfd
mov ecx, edx
call esi
jmp 0x405dc8