Function at 0x41df00
Capabilities:
Check for foreground window switch
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4656d8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47a770]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0xb0], 0
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41dff1
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x40]
add esp, 4
push eax
mov eax, ebp
call fcn.004060f0
add esp, 8
cmp dword [esp + 0x38], 0x1a9
jne 0x41dff1
cmp dword [esp + 0x3c], 0x15f
jne 0x41dff1
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x64]
mov eax, dword [esp + 0xb8]
push 4
push edx
push 0x15f
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
mov esi, 0x64
call fcn.00429de0
add eax, 0x10
mov ecx, esi
add esp, 4
mov esi, ebp
mov dword [edi], eax
call fcn.004026f0
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x20], 0
nop
mov esi, dword [esp + 0xb8]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x18], esp
mov dword [esp + 0x1c], esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x41e037
cmp eax, dword [esi]
jne 0x41e037
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41e06b
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x41ed9c
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0044b46f
add esp, 0x10
mov edx, dword [esp + 0x1c]
add edi, 0x10
mov dword [edx], edi
mov edi, ebp
call fcn.00407850
mov eax, dword [0x480c28]
add esp, 4
push eax
call ebx
mov esi, dword [0x47baf4]
lea ecx, [esp + 0x5c]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x5c]
push edx
push 0
push 0x1fffff
mov dword [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0x94]
push eax
push 4
lea ecx, [esp + 0x48]
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x40], 0
jne 0x41ed90
cmp dword [esp + 0x20], 3
jle 0x41e150
mov eax, dword [esp + 0xb8]
push 0xb
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov edi, ebp
call fcn.004054b0
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax + 0x60]
add esp, 8
lea edx, [esp + 0x20]
push edx
push ecx
push eax
mov eax, dword [esp + 0xc4]
push ebp
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov dword [esp + 0x38], 0
call fcn.00429de0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004091a0
add esp, 0x14
push 0
call fcn.0044bf56
push eax
call fcn.0044bf22
mov eax, dword [esp + 0xc0]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.00406270
add esp, 4
cmp al, 1
jne 0x41e1b5
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
call fcn.00407f60
add esp, 4
call fcn.0044bf34
cdq
mov ecx, 0x32
idiv ecx
mov eax, 0x19
sub eax, edx
mov dword [esp + 0x14], eax
call fcn.0044bf34
cdq
mov ecx, 0x32
idiv ecx
mov eax, 0x19
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x34]
call fcn.004045c0
mov eax, dword [esp + 0xbc]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov edx, dword [0x47bb0c]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
add esp, 8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push eax
push ebp
mov dword [esp + 0x20], edx
call edi
mov ecx, dword [esp + 0x4c]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x54], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x90]
push edx
mov esi, eax
push 4
lea eax, [esp + 0x50]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x50]
push eax
push ebp
mov dword [esp + 0x20], edx
call edi
mov ecx, dword [esp + 0x50]
push ecx
push 0
push 0x1fffff
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x98]
push edx
mov esi, eax
push 4
lea eax, [esp + 0x4c]
push eax
add ecx, 0x1ec
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e2f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub esi, 0x3e9
je 0x41e9a6
sub esi, 0x17
je 0x41e77b
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xb8]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00408690
mov eax, dword [esp + 0xc0]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
mov eax, dword [esp + 0xb8]
jne 0x41e473
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0x68]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.00405d80
add esp, 8
cmp dword [esp + 0x64], 0x55
jne 0x41e690
cmp dword [esp + 0x60], 0xffffffff
jne 0x41e4a3
push 0x64
call ebx
mov eax, dword [esp + 0xb8]
push 0xe1
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
mov esi, 0x1af
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
mov dword [esp + 0x18], 0
lea esp, [esp]
push 0x12c
call ebx
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
push eax
call fcn.00429de0
mov esi, eax
mov eax, dword [0x47bb0c]
add esp, 4
push eax
mov ecx, ebp
call fcn.0042bd60
add eax, 0x1ec
push eax
mov ecx, ebp
call fcn.0042bd60
mov edi, eax
mov eax, esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e443
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, 0x3e9
je 0x41e465
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0xa
mov dword [esp + 0x18], eax
jle 0x41e3f0
push 0x58f
call ebx
jmp 0x41e000
push 0x12c
call ebx
mov eax, dword [esp + 0xb8]
push 0xb
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov edi, ebp
mov dword [esi], eax
call fcn.004054b0
add esp, 8
push 0x58f
call ebx
jmp 0x41e000
fld dword [0x46f368]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
sub esp, 8
fstp dword [esp + 4]
mov ecx, esp
mov dword [esp + 0x24], esp
push str.380000
call fcn.0042a2b0
mov ecx, ebp
call fcn.0042bf60
cmp eax, 1
jne 0x41e573
push 0x12c
call ebx
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
add eax, 0xfffffffb
push eax
mov eax, dword [esp + 0xbc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
add esi, 0xfffffffb
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x3e9
je 0x41e569
push 0x12c
call ebx
inc edi
cmp edi, 0xa
jle 0x41e520
push 0x58f
call ebx
jmp 0x41e000
push 0x1f4
jmp 0x41e46a
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, ebp
je 0x41e5ca
lea ebx, [ebx]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
call fcn.0044bf56
push eax
call fcn.0044bf22
add esp, 8
call fcn.0044bf34
cdq
mov ecx, 0x64
idiv ecx
add edx, 0x12c
push edx
call ebx
push 0x12c
call ebx
call esi
cmp eax, ebp
jne 0x41e590
push 0x47e5d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
fld dword [0x46f368]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
sub esp, 8
fstp dword [esp + 4]
mov ecx, esp
mov dword [esp + 0x24], esp
push str.380000
call fcn.0042a2b0
mov ecx, ebp
call fcn.0042bf60
cmp eax, 1
jne 0x41ed90
push 0x12c
call ebx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add ecx, 0xfffffffb
push ecx
push ecx
lea eax, [esp + 0xc0]
mov esi, esp
add edi, 0xfffffffb
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.004062f0
add esp, 8
xor edi, edi
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x3e9
je 0x41e569
push 0x12c
call ebx
inc edi
cmp edi, 0xa
jle 0x41e643
push 0x58f
call ebx
jmp 0x41e000
mov eax, dword [esp + 0xb8]
inc dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea edx, [esp + 0x88]
add esp, 4
mov dword [esi], eax
push edx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0xc0]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41e768
cmp dword [esp + 0x80], 0x224
jne 0x41e768
cmp dword [esp + 0x84], 0x153
jne 0x41e768
push ecx
lea eax, [esp + 0xbc]
mov esi, esp
mov dword [esp + 0x18], esp
call fcn.00403870
lea eax, [esp + 0x6c]
push eax
mov eax, ebp
call fcn.00405d80
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
add esp, 8
add ecx, 0x82
push ecx
push ecx
lea eax, [esp + 0xc0]
mov esi, esp
add edi, 0x132
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, edi
mov edx, ebp
call fcn.00405370
add esp, 8
push 0x514
call ebx
push 0x12c
call ebx
push 0x58f
call ebx
jmp 0x41e000
mov esi, dword [0x47baf4]
lea edx, [esp + 0x58]
push edx
push ebp
call edi
mov eax, dword [esp + 0x58]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x9c]
push ecx
push 4
lea edx, [esp + 0x5c]
push edx
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld dword [esp + 0x54]
fcomp qword [0x46f1d8]
fnstsw ax
test ah, 0x44
jp 0x41ed90
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [edi - 0x21]
add eax, 0xfffffff0
mov edx, ecx
imul eax, eax
imul edx, ecx
add eax, edx
cmp eax, 0x50
jg 0x41e82a
mov eax, dword [esp + 0xc4]
push eax
mov eax, dword [esp + 0xbc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0041c680
add esp, 8
push 0x58f
call ebx
jmp 0x41e000
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0x80]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.00405d80
mov eax, dword [esp + 0xc0]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41e8c9
cmp dword [esp + 0x78], 0x32
jne 0x41e8c9
cmp dword [esp + 0x7c], 0xe6
jne 0x41e8c9
mov edx, dword [esp + 0xc4]
push edx
push ecx
lea eax, [esp + 0xc0]
mov esi, esp
mov dword [esp + 0x1c], esp
call fcn.00403870
mov ecx, ebp
call fcn.0041c680
add esp, 8
push 0x58f
call ebx
jmp 0x41e000
xor esi, esi
mov dword [esp + 0x1c], esi
call fcn.0044bf34
cmp edi, 0xf
jge 0x41e8e7
mov eax, 0xf
sub eax, edi
lea esi, [eax + eax*4]
add esi, esi
add esi, esi
mov eax, dword [esp + 0x34]
cmp eax, 0xd
jge 0x41e900
mov ecx, 0xc
sub ecx, eax
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
jmp 0x41e904
mov ecx, dword [esp + 0x1c]
cmp edi, 0x21
jle 0x41e917
mov esi, 0x21
sub esi, edi
lea esi, [esi + esi*4]
add esi, esi
add esi, esi
lea edx, [edi + edi*4]
lea eax, [eax + eax*4 - 0x14]
add edx, edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0xb8]
add edx, edx
mov edi, 0x3d9
push 0x5a
push ecx
sub edi, edx
add eax, 0xfffffff0
sub edi, esi
mov dword [esp + 0x20], esp
mov esi, esp
push eax
mov dword [esp + 0x28], ecx
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
call fcn.00405540
push 0x32
call ebx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0xb8]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
add edi, ecx
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, edi
mov edx, ebp
mov dword [esi], eax
call fcn.004062f0
add esp, 8
push 0x58f
call ebx
jmp 0x41e000
mov edx, dword [esp + 0x30]
add edx, 0xfffffdfc
cmp edx, 0x12
ja 0x41ec06
mov eax, dword [esp + 0x34]
add eax, 0xffffff6e
cmp eax, 0xe
ja 0x41ec06
mov eax, dword [esp + 0xb8]
push 0x7a
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
call fcn.00405540
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0xa4]
call fcn.004045c0
mov esi, dword [eax]
mov edi, dword [eax + 4]
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
call fcn.0044bf34
cdq
mov ecx, 0x2d
idiv ecx
mov dword [esp + 0x14], edx
call fcn.0044bf34
cdq
mov ecx, 0x64
idiv ecx
push ecx
mov dword [esp + 0x28], edx
call ebx
lea eax, [edi + edi*4 - 0x2ee]
add eax, eax
lea edx, [esi + esi*4]
add edx, edx
add eax, eax
sub eax, dword [esp + 0x14]
add edx, edx
mov ecx, 0x2a5d
sub ecx, edx
cmp eax, 0x36
jge 0x41ea7c
mov eax, 0x36
push eax
mov eax, dword [esp + 0x28]
lea esi, [ecx + eax]
mov eax, dword [esp + 0xbc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
xor edi, edi
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.00403f70
add esp, 4
cmp eax, 0x400
je 0x41ed90
push 0x1f4
call ebx
inc edi
cmp edi, 0xf
jle 0x41eab1
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41ebbe
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0x40]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, 0x224
jne 0x41eb7a
cmp dword [esp + 0x3c], 0x153
jne 0x41ebbe
mov edx, dword [esp + 0xc4]
mov eax, dword [edx + 0x64]
push 2
push eax
push 0x153
jmp 0x41eb9d
cmp eax, 0x1f4
jne 0x41ebbe
cmp dword [esp + 0x3c], 0x10d
jne 0x41ebbe
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx + 0x64]
push 3
push edx
push 0x10d
push ecx
lea eax, [esp + 0xc8]
mov esi, esp
mov edi, 0x64
mov dword [esp + 0x24], esp
call fcn.00403870
mov ecx, edi
mov esi, ebp
call fcn.004026f0
mov eax, dword [esp + 0xb8]
push 0xf0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
mov esi, 0x205
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
push 0x12c
call ebx
push 0x58f
call ebx
jmp 0x41e000
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x90]
add esp, 4
push eax
mov eax, ebp
call fcn.004060f0
mov eax, dword [esp + 0xc0]
add esp, 4
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov eax, ebp
call fcn.004046f0
add esp, 4
test al, al
jne 0x41ed61
cmp dword [esp + 0x88], 0x295
jne 0x41ed61
cmp dword [esp + 0x8c], 0x1a3
jne 0x41ed61
mov eax, dword [esp + 0xb8]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
lea ecx, [esp + 0x78]
add esp, 4
mov dword [esi], eax
push ecx
mov eax, ebp
call fcn.00405d80
mov edx, dword [esp + 0x78]
add edx, 0x2e
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
add esp, 8
fadd qword [0x46f360]
call fcn.00450dd0
mov edi, eax
mov eax, dword [esp + 0x74]
add eax, 0x178
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fsub qword [0x46f358]
call fcn.00450dd0
mov dword [esp + 0x14], eax
call fcn.0044bf34
and eax, reloc.WS2_32.dll_closesocket
jns 0x41ed04
dec eax
or eax, 0xfffffffc
inc eax
mov esi, 2
sub esi, eax
call fcn.0044bf34
mov ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x41ed1f
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, dword [esp + 0x14]
mov eax, 2
sub eax, ecx
add eax, edx
push eax
mov eax, dword [esp + 0xbc]
push ecx
add eax, 0xfffffff0
add esi, edi
mov dword [esp + 0x1c], esp
mov edi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov ecx, esi
mov edx, ebp
mov dword [edi], eax
call fcn.004062f0
add esp, 8
push 0xc8
call ebx
mov eax, dword [esp + 0xb8]
push 0x18
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00429de0
add eax, 0x10
add esp, 4
mov edi, ebp
mov dword [esi], eax
call fcn.004054b0
add esp, 8
push 0x46
call ebx
push 0x58f
call ebx
jmp 0x41e000
call fcn.00401ea0
int3