Function at 0x417960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57edc7
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5cca0c]
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x50], ebx
jne 0x4179b1
mov dword [ebp - 0x30], ebx
jmp 0x4179e6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4179c7
mov dword [ebp - 0x30], ebx
jmp 0x4179e6
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.00401180
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
push 4
push str..ico
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.0040c1c0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x6c]
push ecx
push edx
mov edi, 1
push esi
mov dword [ebp - 4], edi
call fcn.0040f5b0
add esp, 0xc
mov dword [ebp - 0x50], edi
mov edi, 0x10
cmp dword [ebp - 0x54], edi
mov byte [ebp - 4], bl
jb 0x417a37
mov eax, dword [ebp - 0x68]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esi + 0x18], edi
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
jb 0x417a4e
mov edi, dword [esi + 4]
jmp 0x417a51
lea edi, [esi + 4]
cmp edi, ebx
je 0x417a8b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, 1
cmp esi, 0x3fffffff
jg 0x417a8b
lea eax, [esi + esi]
call fcn.00553150
mov eax, esp
cmp eax, ebx
je 0x417a8b
push esi
push eax
push 0xffffffffffffffff
push edi
push ebx
push 0x3a8
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test byte [0x5cdec0], 1
jne 0x417ae2
or dword [0x5cdec0], 1
mov ecx, 0x5cdeb4
mov dword [ebp - 4], 2
call fcn.004071f0
mov dword [0x5cdeb8], eax
mov byte [eax + 0x2d], 1
mov eax, dword [0x5cdeb8]
mov dword [eax + 4], eax
mov eax, dword [0x5cdeb8]
mov dword [eax], eax
mov eax, dword [0x5cdeb8]
mov dword [eax + 8], eax
push 0x5932e0
mov dword [0x5cdebc], ebx
call fcn.0055500d
add esp, 4
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x38]
mov eax, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417af7
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040c1c0
mov ecx, dword [ebp - 0x44]
push ecx
mov dword [ebp - 4], 3
call fcn.00554eb9
add esp, 4
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x5cdeb4
call fcn.00409eb0
mov esi, dword [ebp - 0x40]
cmp esi, ebx
mov edi, dword [0x5cdeb8]
je 0x417b49
cmp esi, 0x5cdeb4
je 0x417b4e
call fcn.005532de
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x417bae
cmp esi, ebx
jne 0x417b61
call fcn.005532de
mov eax, dword [ebp - 0x3c]
cmp eax, dword [esi + 4]
jne 0x417b6e
call fcn.005532de
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x28], 0x10
jb 0x417b79
mov eax, dword [eax + 0x14]
jmp 0x417b7c
add eax, 0x14
mov ecx, eax
mov eax, dword [ebp - 0x38]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x417ba1
cmp dl, bl
je 0x417b9d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x417ba1
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x417b81
xor eax, eax
jmp 0x417ba6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x417c57
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x30]
push 0x30
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [ebp - 0x3c], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x417bd1
sub eax, esi
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040c1c0
mov esi, dword [ebp - 0x38]
push esi
call fcn.0040f7a0
add esp, 0x28
cmp al, bl
jne 0x417c3b
push 0x16c
call fcn.0055289e
add esp, 4
cmp eax, ebx
je 0x417c1f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x48]
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 0x44]
push esi
push ecx
push edx
mov ecx, eax
call fcn.00402600
jmp 0x417c21
xor eax, eax
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
push 0x416290
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x5cdeb4
call fcn.00415aa0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.0040a080
cmp dword [ebp - 0x14], 0x10
jb 0x417c69
mov edx, dword [ebp - 0x28]
push edx
call fcn.0055215c
add esp, 4
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0x7c]
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.00552d63
mov esp, ebp
pop ebp
ret 0x14