Function at 0x404b80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
cmp dword [ebp + 8], 0xd
jne 0x404e92
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.00424e70
push eax
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.004069e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1d8]
call fcn.00424bf0
xor edx, edx
mov word [ebp - 0x114], dx
push 0xfe
push 0
lea eax, [ebp - 0x112]
push eax
call fcn.00495570
add esp, 0xc
push 0x7f
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x254]
add edx, 0x20
push edx
call fcn.0040ec20
add esp, 0xc
mov byte [ebp - 0x131], al
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.00401680
mov dword [ebp - 4], 1
movzx ecx, byte [ebp - 0x131]
test ecx, ecx
jne 0x404e20
lea ecx, [ebp - 0x130]
call fcn.00406a00
movzx edx, al
test edx, edx
je 0x404e20
push 1
mov ecx, dword [ebp - 0x254]
call fcn.004069b0
push 0x4c659c
lea ecx, [ebp - 0x1f8]
call fcn.00401680
mov byte [ebp - 4], 2
push 0x4c65a4
lea ecx, [ebp - 0x214]
call fcn.00401680
mov byte [ebp - 4], 3
push str.dk__vN
lea ecx, [ebp - 0x230]
call fcn.00401680
mov byte [ebp - 4], 4
push 0x4c65d4
lea ecx, [ebp - 0x24c]
call fcn.00401680
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.0040bd40
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.004016c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.004016c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x214]
call fcn.004016c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f8]
call fcn.004016c0
movzx eax, byte [ebp - 0x1d9]
test eax, eax
je 0x404db5
push 0
mov ecx, dword [ebp - 0x254]
call fcn.004069b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.004016c0
jmp 0x404e9b
push 0
mov ecx, dword [ebp - 0x254]
call fcn.004069b0
push 0x4c65e0
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
push ecx
lea edx, [ebp - 0x154]
push edx
call fcn.00401d00
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x154]
call fcn.00402ab0
push eax
call fcn.0040e610
add esp, 4
test eax, eax
jne 0x404e0f
push str._saibo
mov ecx, dword [ebp - 0x254]
add ecx, 0x20
call fcn.00401e50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x154]
call fcn.004016c0
jmp 0x404e36
lea eax, [ebp - 0x114]
push eax
push 0
push 0x4d52c8
call fcn.0040f630
add esp, 0xc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0x406340
push 0
push 0
call fcn.0049282c
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.004050a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.004016c0
jmp 0x404e9b
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004922e7
mov esp, ebp
pop ebp
ret 0xc