Function at 0x41edc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4942e5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b30f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x18], esi
call fcn.00425cf0
mov dword [esp + 0x48], esi
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x278]
call fcn.00405f30
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011b0
call dword [0x496308]
push eax
call fcn.00428840
cmp eax, esi
je 0x41ee54
cmp ebx, esi
je 0x41ee3f
add ebx, 0x90
mov dword [esp + 0x18], ebx
jmp 0x41ee43
mov dword [esp + 0x18], esi
lea esi, [eax + 4]
lea ebx, [esp + 0x18]
call fcn.0042b0a0
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebx + 0x158]
lea edi, [ebx + 0x158]
test eax, eax
je 0x41ee94
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.0041b9c0
mov dword [esp + 0x48], 1
mov eax, dword [eax]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x10]
call eax
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00404520
mov dword [ebx + 0x168], esi
test esi, esi
jbe 0x41eea6
cmp esi, 0x493e0
jb 0x41eed8
cmp dword [0x4b8394], 0
jne 0x41eed8
mov ecx, dword [ebx + 4]
push ecx
call dword [0x496490]
push 0
call dword [0x496498]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0x4b8350], esi
mov esi, dword [ebx + 4]
call fcn.00418dc0
push 1
mov dword [eax + 0x24], esi
call dword [0x4964b8]
lea edx, [esp + 0x1c]
push edx
push ebx
lea esi, [esp + 0x20]
mov dword [ebx + 0x154], eax
mov dword [esp + 0x20], 0
call fcn.0041f370
push 0
call fcn.0046f5af
mov dword [ebx + 0x1ac], eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x20], edx
cmp eax, 0x64
jne 0x41ef30
mov eax, 0x63
mov esi, edi
mov dword [ebx + 0x188], eax
call fcn.00419fc0
mov dword [ebx + 0x16c], eax
cmp eax, 3
je 0x41f093
cmp eax, 4
je 0x41f093
lea eax, [esp + 0x18]
push eax
call fcn.00425cf0
mov dword [esp + 0x48], 2
mov eax, dword [eax]
push eax
mov dword [esp + 0x18], 1
call dword [0x496408]
test eax, eax
je 0x41ef9f
mov eax, dword [ebx + 0x23c]
push eax
push 1
push str.benable
push str.speedld
call dword [0x496358]
mov byte [esp + 0x13], 1
cmp eax, 1
je 0x41efa4
mov byte [esp + 0x13], 0
mov dword [esp + 0x48], 0xffffffff
mov eax, 1
mov dword [esp + 0x14], eax
and eax, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004011b0
cmp byte [esp + 0x13], 0
je 0x41f093
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x8036
call fcn.00403a70
mov dword [esp + 0x48], 3
mov eax, dword [eax]
lea edi, [ebx + 0x1fc]
mov esi, eax
mov eax, edi
call fcn.00467a20
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011b0
lea ecx, [ebx + 0x24]
mov eax, 3
mov esi, edi
call fcn.00429320
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0x4b952c
call fcn.004350b0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x41f040
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 0
push 0
push edi
call eax
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 1
je 0x41f065
mov ecx, dword [edi + 0x1c]
and eax, 0xfffffffe
mov dword [edi + 4], eax
test ecx, ecx
je 0x41f065
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 1
push 0
push edi
call eax
lea esi, [ebx + 0x1b0]
mov eax, 3
mov edx, 0x4e20
lea ecx, [ebx + 0x24]
call fcn.00429370
mov dword [esi + 0x38], 0x4b9510
call fcn.00429410
mov dword [ebx + 0x234], 1
mov ecx, dword [ebx + 0x274]
push 0xffffffffffffffff
push ecx
call dword [0x4962f4]
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.00421ff0
mov dword [esp + 0x48], 4
lea esi, [ebx + 0x248]
mov edi, esi
call fcn.00405f30
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011b0
mov eax, dword [esi]
push eax
call dword [0x4963f4]
lea edi, [ebx + 0x244]
test eax, eax
jne 0x41f0eb
xor ecx, ecx
jmp 0x41f0ff
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f0f0
sub ecx, ebx
sar ecx, 1
push eax
mov ebx, ecx
mov eax, edi
call fcn.004014b0
mov eax, dword [esi]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x174]
mov edx, dword [esi + 0x188]
push ecx
push edx
push eax
call fcn.00420f10
mov eax, dword [esi + 0x108]
mov dword [esi + 0x1a4], eax
mov eax, dword [esi + 0x10c]
mov dword [esi + 0x1a0], eax
test eax, eax
je 0x41f165
mov eax, dword [0x4b8418]
push eax
push 0
push str.close
push str.prpt
call dword [0x496358]
cmp eax, 1
jne 0x41f165
mov dword [esi + 0x1a0], 0
cmp dword [esi + 0x1a0], 0
je 0x41f1a6
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00421f80
mov dword [esp + 0x48], 5
mov edx, dword [0x4b8418]
mov eax, dword [eax]
or dword [esp + 0x14], 2
push edx
push 0
push str.close
push eax
call dword [0x496358]
cmp eax, 1
jne 0x41f1a6
mov bl, al
jmp 0x41f1a8
xor bl, bl
or edi, 0xffffffff
mov dword [esp + 0x48], edi
test byte [esp + 0x14], 2
je 0x41f1c4
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0x18]
call fcn.004011b0
test bl, bl
je 0x41f1d2
mov dword [esi + 0x1a0], 0
cmp dword [esi + 0x1a0], 0
je 0x41f2a0
push 0x20
mov dword [esi + 0x1a0], 0
call fcn.0046fefa
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], 6
test eax, eax
je 0x41f20b
push eax
call fcn.004699e0
jmp 0x41f20d
xor eax, eax
mov dword [esp + 0x48], edi
mov dword [esi + 0x27c], eax
lea eax, [esp + 0x18]
push eax
lea ebx, [esi + 0x24c]
push ebx
call fcn.0046a310
mov dword [esp + 0x48], 7
mov eax, dword [eax]
mov ecx, dword [esi + 0x27c]
push ecx
mov edx, eax
call fcn.004668b0
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x18]
call fcn.004011b0
mov edx, dword [esi + 0x27c]
mov eax, dword [esi + 4]
push ebx
mov dword [edx + 0xc], eax
call fcn.0046a2a0
test eax, eax
je 0x41f270
mov ecx, dword [esi + 0x27c]
mov dword [ecx + 0x14], 1
mov ebx, dword [esi + 0x27c]
push 0
push 0
push 0
push 0
call dword [0x4962b8]
push 0
push 0
push ebx
push 0x469a60
push 0
push 0
mov dword [ebx + 8], eax
call fcn.00470d15
add esp, 0x18
mov dword [ebx + 4], eax
mov edx, dword [esi + 0x174]
push edx
mov ebx, esi
call fcn.0041f4d0
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0
call dword [0x4962e4]
cmp dword [esp + 0x24], 0x20000000
sbb ecx, ecx
neg ecx
mov dword [0x4b8334], ecx
je 0x41f33b
mov edx, dword [esi + 4]
push 2
push 0xff
push 0
push edx
call dword [0x4964b4]
mov eax, dword [esi + 4]
push 4
push eax
call dword [0x4964b0]
mov ecx, dword [esi + 4]
push 0x3e9
push ecx
call dword [0x49644c]
mov edx, dword [esi + 0x150]
mov eax, dword [esi + 4]
imul edx, edx, 0x3e8
push 0
push edx
push 0x3ea
push eax
jmp 0x41f348
mov ecx, dword [esi + 4]
push 0
push 0x64
push 0x3e9
push ecx
call dword [0x496448]
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4