Function at 0x41dc70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x42d880
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437024]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xd8]
mov eax, dword [esp + 0xd0]
lea ecx, [esp + 0x3c]
xor ebx, ebx
push ecx
mov byte [eax], bl
call fcn.0041e170
lea eax, [ebx + 0xa]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xb8], ebx
call fcn.0041b000
mov edi, eax
mov eax, 0x43c0d4
mov byte [esp + 0xb8], 1
call fcn.00404bf0
mov byte [esp + 0xb8], bl
mov edx, dword [esp + 0x1c]
push edx
call fcn.004210fe
add esp, 4
lea eax, [ebx + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0041b000
mov edi, eax
mov eax, 0x43c0e0
mov byte [esp + 0xb8], 2
call fcn.00404bf0
mov byte [esp + 0xb8], bl
mov eax, dword [esp + 0x1c]
push eax
call fcn.004210fe
add esp, 4
lea eax, [ebx + 0x19]
lea ecx, [esp + 0x1c]
call fcn.0041b000
mov edi, eax
mov eax, 0x43c0ec
mov byte [esp + 0xb8], 3
call fcn.00404bf0
mov byte [esp + 0xb8], bl
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004210fe
add esp, 4
lea eax, [ebx + 0x1a]
lea ecx, [esp + 0x1c]
call fcn.0041b000
mov edi, eax
mov eax, 0x43c0f8
mov byte [esp + 0xb8], 4
call fcn.00404bf0
mov byte [esp + 0xb8], bl
mov edx, dword [esp + 0x1c]
push edx
call fcn.004210fe
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x40], eax
add esp, 4
lea eax, [esp + 0x40]
call fcn.00404bf0
mov edi, dword [esp + 0xc8]
lea eax, [esp + 0x4c]
call fcn.00404bf0
push 0x170
call fcn.004211db
add esp, 4
cmp eax, ebx
jne 0x41dddf
push 0x433be0
lea ecx, [esp + 0x1f]
push ecx
mov byte [esp + 0x23], bl
call fcn.0042a655
mov dword [esp + 0x14], eax
push eax
mov byte [esp + 0xbc], 5
call fcn.0041d680
mov esi, eax
mov byte [esp + 0xb8], bl
mov dword [esp + 0x58], esi
cmp esi, ebx
je 0x41de0a
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x41de1a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x58]
add eax, 0x154
mov edi, ebp
mov dword [esp + 0x5c], esi
call fcn.00404bf0
cmp dword [ebp + 4], ebx
mov ecx, dword [esp + 0x58]
setne al
mov byte [ecx + 0x150], al
mov edx, dword [esp + 0x58]
mov al, byte [esp + 0xdc]
mov byte [edx + 0x169], al
cmp byte [esp + 0xcc], bl
je 0x41e06c
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041d970
cmp dword [esp + 0x9c], ebx
jne 0x41e0ae
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov eax, dword [edx + eax*4 - 4]
mov edi, dword [eax]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [edi]
mov eax, dword [ecx + 0x14]
push edx
push edi
call eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], ebx
jbe 0x41df80
xor ecx, ecx
xor edx, edx
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], dx
lea edx, [esp + 0x2c]
push edx
push 3
mov byte [esp + 0xc0], 6
mov ecx, dword [edi]
push eax
mov eax, dword [ecx + 0x18]
push edi
call eax
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
call fcn.00404b30
mov ecx, dword [eax]
movzx eax, word [ecx]
mov edx, 0x73
add ecx, 2
mov esi, 0x43083a
cmp ax, dx
jb 0x41df07
cmp ax, dx
ja 0x41df0c
test ax, ax
je 0x41df13
movzx eax, word [ecx]
movzx edx, word [esi]
add ecx, 2
add esi, 2
cmp ax, dx
jae 0x41deef
or eax, 0xffffffff
jmp 0x41df15
mov eax, 1
jmp 0x41df15
xor eax, eax
mov ecx, dword [esp + 0x1c]
test eax, eax
push ecx
sete bl
call fcn.004210fe
add esp, 4
test bl, bl
jne 0x41df50
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], bl
call fcn.00408530
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jb 0x41dea2
jmp 0x41df7e
mov eax, dword [esp + 0x5c]
mov edx, dword [edi]
mov edx, dword [edx + 0x1c]
push eax
push 0
push 1
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], eax
mov byte [esp + 0xb8], 0
call fcn.00408530
xor ebx, ebx
cmp dword [esp + 0x9c], ebx
jne 0x41e0ae
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x28]
push eax
push ebx
lea ecx, [esp + 0x44]
push ecx
push 0x41dc60
push ebx
push ebx
mov byte [esp + 0xd0], 7
call fcn.004213a6
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x14], ebp
cmp ebp, ebx
jne 0x41dfd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, ebx
jne 0x41dfce
mov esi, 1
lea edx, [esp + 0x3c]
push edx
jmp 0x41e136
push 4
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00404e70
mov eax, 0x45
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 8
call fcn.0041b000
mov edi, eax
mov eax, esi
mov byte [esp + 0xb8], 9
call fcn.00404bf0
mov byte [esp + 0xb8], 8
mov eax, dword [esp + 0x2c]
push eax
call fcn.004210fe
mov eax, dword [esp + 0x5c]
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov edx, esi
push edx
push eax
call fcn.0041d570
mov byte [esp + 0xb8], 7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004210fe
add esp, 4
push ebp
mov byte [esp + 0xbc], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41e0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e0ae
cmp byte [esp + 0x94], bl
jne 0x41e088
lea edx, [esp + 0x3c]
push edx
call fcn.0041d970
cmp dword [esp + 0x9c], ebx
jne 0x41e0ae
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x5c]
mov eax, dword [eax]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
push ecx
push ebx
push 0xffffffffffffffff
push ebx
push eax
call edx
mov dword [esp + 0x9c], eax
mov esi, dword [esp + 0xd4]
lea eax, [esp + 0xa0]
cmp eax, esi
je 0x41e101
mov ecx, dword [esi]
xor edx, edx
mov dword [esi + 4], ebx
mov word [ecx], dx
mov eax, dword [esp + 0xa4]
inc eax
cmp eax, dword [esi + 8]
je 0x41e0dd
push eax
call fcn.00404e70
mov edx, dword [esp + 0xa0]
mov ecx, dword [esi]
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x41e0e6
mov eax, dword [esp + 0xa4]
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
jne 0x41e117
mov edi, dword [esp + 0x58]
add edi, 0x144
mov eax, esi
call fcn.00404bf0
mov ecx, dword [esp + 0x58]
mov dl, byte [ecx + 0x140]
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0x3c]
mov byte [eax], dl
push ecx
mov dword [esp + 0xbc], 0xffffffff
call fcn.0041e230
mov eax, esi
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 0x20