Function at 0x4065b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
lea eax, [ebp - 0x1d8]
push eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 0x55c]
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax + 0x55c]
mov edx, dword [edx]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x25c]
call fcn.004281e0
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00401900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d8]
call fcn.00427f60
xor edx, edx
mov word [ebp - 0x114], dx
push 0xfe
push 0
lea eax, [ebp - 0x112]
push eax
call fcn.004a8470
add esp, 0xc
push 0x7f
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x254]
add edx, 0x20
push edx
call fcn.004111c0
add esp, 0xc
mov byte [ebp - 0x131], al
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401840
mov dword [ebp - 4], 1
movzx ecx, byte [ebp - 0x131]
test ecx, ecx
jne 0x40687f
lea ecx, [ebp - 0x130]
call fcn.00407be0
movzx edx, al
test edx, edx
je 0x40687f
push 1
mov ecx, dword [ebp - 0x254]
call fcn.00406580
push 0x4dfd4c
lea ecx, [ebp - 0x1f8]
call fcn.00401840
mov byte [ebp - 4], 2
push 0x4dfd54
lea ecx, [ebp - 0x214]
call fcn.00401840
mov byte [ebp - 4], 3
push str.dk__vN
lea ecx, [ebp - 0x230]
call fcn.00401840
mov byte [ebp - 4], 4
push 0x4dfd80
lea ecx, [ebp - 0x24c]
call fcn.00401840
mov byte [ebp - 4], 5
push 0xb4
push 0x12c
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 2
push 1
lea edx, [ebp - 0x230]
push edx
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx + 4]
push edx
call fcn.0040da20
add esp, 0x24
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1d9], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.004018c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.004018c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x214]
call fcn.004018c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f8]
call fcn.004018c0
movzx eax, byte [ebp - 0x1d9]
test eax, eax
je 0x4067db
push 0
mov ecx, dword [ebp - 0x254]
call fcn.00406580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.004018c0
jmp 0x40690d
push 0
mov ecx, dword [ebp - 0x254]
call fcn.00406580
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00472d20
sub eax, 1
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00407b90
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x406823
push 0x4dfd8c
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00401920
push 0x4dfd90
mov edx, dword [ebp - 0x254]
add edx, 0x20
push edx
lea eax, [ebp - 0x154]
push eax
call fcn.0040b530
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x154]
call fcn.00402c10
push eax
call fcn.00410a00
add esp, 4
test eax, eax
jne 0x406870
push 0x4dfda0
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00401920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call fcn.004018c0
push 0
push 2
mov ecx, dword [ebp - 0x254]
mov ecx, dword [ecx + 0x578]
call fcn.004292c0
push 0x64
push 0x64
mov edx, dword [ebp - 0x254]
mov eax, dword [edx + 0x57c]
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x78
call fcn.00422680
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0x405ec0
push 0
push 0
call fcn.004a54a2
add esp, 0x18
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x250], edx
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x254]
call fcn.00404c00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.004018c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret