Function at 0x4491c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fd1b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5e4e94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x4d0]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4a4], 0
je 0x449217
push 0
push 0
push str.Tester_Status_BUSY
call fcn.004624b8
push esi
jmp 0x449a05
lea eax, [ebx + 0x574]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionA.ini
mov dword [ebx + 0x4a4], 1
mov dword [ebx + 0x4b0], 0
call fcn.00401a90
mov ecx, ebx
call fcn.0042ad10
lea ecx, [ebx + 0xfd8]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionB.ini
call fcn.00401a90
mov ecx, ebx
call fcn.0042ad10
lea edx, [ebx + 0x1a3c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionC.ini
call fcn.00401a90
mov ecx, ebx
call fcn.0042ad10
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x449296
lea eax, [ebx + 0x3248]
push eax
jmp 0x4492a2
cmp eax, 2
jne 0x4492ad
lea edx, [ebx + 0x324c]
push edx
lea ecx, [ebx + 0x3244]
call fcn.004019a0
mov ecx, ebx
call fcn.004488d0
mov ecx, ebx
call fcn.00444cb0
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
movzx ecx, word [ebx + 0x15c]
mov edi, dword [ebx + 0xbc]
lea esi, [ebx + 0x15c]
mov dword [ebp - 0x18], eax
cmp edi, ecx
jle 0x44931c
movzx edx, word [ebx + 0x15e]
mov eax, dword [ebx + 0xc0]
cmp eax, edx
jle 0x44931c
sub eax, edx
push 0x44
push edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x18]
push ecx
push eax
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push 0x3ec
mov ecx, ebx
call fcn.0046c93c
mov ecx, eax
call fcn.0046cd04
cmp dword [ebx + 0x55c], 0
jne 0x449377
push 0x2f0
call fcn.0045fef4
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x449368
lea ecx, [ebx + 0x560]
push ecx
lea edx, [ebx + 0x4e8]
push edx
sub esp, 0xa4
mov edi, esp
mov ecx, 0x29
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
call fcn.00403010
jmp 0x44936a
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x55c], eax
mov eax, dword [ebx + 0xc4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.004013e0
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [ebx + 0x55c]
add esp, 4
call fcn.00402df0
mov eax, 0xffffd758
sub eax, ebx
lea edi, [ebx + 0x2958]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x2d
jmp 0x4493bb
mov eax, dword [ebp - 0x1c]
mov esi, dword [edi]
add eax, edi
add eax, dword [ebx + 0x55c]
sub esi, 0x10
mov eax, dword [eax]
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x449418
cmp dword [esi + 0xc], 0
jl 0x44940c
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x44940c
push ecx
call fcn.004013e0
mov dword [ebp - 0x20], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449402
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x449418
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004017e0
add edi, 4
dec dword [ebp - 0x18]
jne 0x4493b8
cmp dword [ebx + 0x31d0], 1
jne 0x4494f1
mov edx, dword [ebx + 0x55c]
mov eax, dword [ebx + 0x72c]
mov dword [edx + 0x2cc], eax
mov ecx, dword [ebx + 0x55c]
mov edx, dword [ebx + 0x728]
mov dword [ecx + 0x2d0], edx
lea eax, [ebx + 0x990]
push eax
lea ecx, [ebx + 0x8dc]
push ecx
mov ecx, dword [ebx + 0x55c]
call fcn.00403490
mov edx, dword [ebx + 0x55c]
mov dword [ebx + 0x261c], eax
lea esi, [edx + 0x218]
lea edi, [ebx + 0x27f0]
mov ecx, 0x2d
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x164]
lea edi, [ebx + 0x28a4]
mov ecx, 0x2d
rep movsd dword es:[edi], dword [esi]
test eax, eax
jle 0x44951c
push 1
push 0xff
push 0x190
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x5927f0
call fcn.00401a90
mov ecx, ebx
call fcn.0041ab30
mov edx, dword [ebx + 0x55c]
mov eax, dword [edx + 0x2e8]
push 1
push 0
push 0xffffffffffffffff
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov esi, esp
push eax
call fcn.004013e0
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x4499e5
push 0xb4
xor edi, edi
lea ecx, [ebx + 0x27f0]
push edi
push ecx
call fcn.0055fff0
push 0xb4
lea edx, [ebx + 0x28a4]
push edi
push edx
call fcn.0055fff0
add esp, 0x18
jmp 0x44951e
xor edi, edi
lea esi, [ebx + 0x50c8]
push esi
mov ecx, ebx
mov dword [esi], 0xffffffff
call fcn.00418e80
cmp dword [esi], 0xffffffff
mov ecx, dword [ebx + 0x55c]
jne 0x4497d1
fld dword [ebx + 0x560]
fstp dword [ecx + 0x2d4]
mov edx, dword [ebx + 0x55c]
fld dword [ebx + 0x564]
fstp dword [edx + 0x2d8]
mov eax, dword [ebx + 0x55c]
fld dword [ebx + 0x568]
fstp dword [eax + 0x2dc]
mov ecx, dword [ebx + 0x55c]
fld dword [ebx + 0x56c]
fstp dword [ecx + 0x2e0]
mov edx, dword [ebx + 0x55c]
fld dword [ebx + 0x570]
fstp dword [edx + 0x2e4]
mov ecx, dword [ebx + 0x55c]
call fcn.004026b0
mov dword [ebp - 0x10], edi
cmp eax, 1
jne 0x44995c
movzx eax, byte [ebx + 0x163]
movzx edx, word [ebx + 0x164]
push eax
movzx eax, byte [ebx + 0x162]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebx + 0x55c]
push edx
push eax
call fcn.00402a70
cmp eax, 1
je 0x4495ff
movzx ecx, byte [ebx + 0x163]
movzx eax, word [ebx + 0x164]
push ecx
movzx ecx, byte [ebx + 0x162]
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x55c]
call fcn.00402a70
movzx edx, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x55c]
push edx
push 0x60
push 0x3007
push 0x60
call fcn.00402a40
movzx eax, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x55c]
push eax
push 0x60
push 0x3007
push 0x60
call fcn.00402a40
movzx ecx, byte [ebx + 0x163]
push ecx
mov ecx, dword [ebx + 0x55c]
push 0x60
push 0x3007
push 0x64
call fcn.00402a40
movzx edx, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x55c]
push edx
push 0x60
push 0x3007
push 0x64
call fcn.00402a40
movzx eax, byte [ebx + 0x163]
movzx edx, word [ebx + 0x164]
push eax
movzx eax, byte [ebx + 0x162]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebx + 0x55c]
push edx
push eax
call fcn.00402a70
mov cx, word [ebp - 0x10]
cmp cx, word [ebx + 0x166]
je 0x449761
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x4496b8
lea edx, [ebx + 0x3250]
push edx
jmp 0x4496c4
cmp eax, 2
jne 0x4496cf
lea eax, [ebx + 0x3254]
push eax
lea ecx, [ebx + 0x3244]
call fcn.004019a0
mov ecx, ebx
call fcn.004488d0
mov ecx, ebx
call fcn.00444cb0
mov edi, dword [ebx + 0x55c]
add edi, 8
mov ecx, 0x29
lea esi, [ebx + 0x15c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x56c]
push ecx
mov ecx, dword [ebx + 0x55c]
fstp dword [esp]
call fcn.00402440
movzx ecx, byte [ebx + 0x163]
movzx eax, word [ebx + 0x164]
push ecx
movzx ecx, byte [ebx + 0x162]
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
mov ecx, dword [ebx + 0x55c]
call fcn.00402a70
mov dx, word [ebp - 0x10]
cmp dx, word [ebx + 0x166]
je 0x44975f
push 1
push 0xff
push 0x190
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.Sensor_error_
call fcn.00401a90
mov ecx, ebx
call fcn.0041ab30
xor edi, edi
mov ecx, dword [ebx + 0x55c]
call fcn.00402c10
movzx eax, word [ebx + 0x1b4]
mov ecx, dword [ebx + 0x1b0]
push 2
push 2
push eax
push ecx
mov ecx, ebx
call fcn.0041de60
cmp eax, edi
jne 0x4497e1
mov ecx, dword [ebx + 0x55c]
call fcn.00402520
mov edx, dword [ebx + 0x55c]
mov eax, dword [edx + 0x2ec]
push 1
push 0xff
push 0x190
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov esi, esp
push eax
call fcn.004013e0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.0041ab30
mov ecx, dword [ebx + 0x55c]
call fcn.00402330
mov dword [ebx + 0x4a4], edi
jmp 0x449a01
fld dword [ebx + 0xa54]
call fcn.00560070
push eax
push 3
mov ecx, ebx
call fcn.00417b00
movzx ecx, word [ebx + 0x15c]
movzx esi, word [ebx + 0x15e]
mov edx, dword [ebx + 0x55c]
imul esi, ecx
mov dword [ebx + 0x158], edi
mov eax, dword [edx + 4]
lea esi, [esi + esi*2 + 0x400]
push esi
mov dword [ebx + 0x4ac], eax
mov dword [ebx + 0x4b4], edi
call fcn.0055fee3
mov edi, eax
push esi
mov dword [ebx + 0x474], edi
call fcn.0055fee3
push esi
mov dword [ebp + 8], eax
mov dword [ebx + 0x47c], eax
call fcn.0055fee3
push esi
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x478], eax
call fcn.0055fee3
add esp, 0x10
mov dword [ebx + 0x480], eax
test edi, edi
je 0x449930
cmp dword [ebp + 8], 0
je 0x449930
cmp dword [ebp - 0x20], 0
je 0x449930
test eax, eax
je 0x449930
push esi
push 0
push edi
call fcn.0055fff0
mov ecx, dword [ebx + 0x47c]
push esi
push 0
push ecx
call fcn.0055fff0
mov edx, dword [ebx + 0x478]
push esi
push 0
push edx
call fcn.0055fff0
mov eax, dword [ebx + 0x480]
push esi
push 0
push eax
call fcn.0055fff0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0x30
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [ebx + 0x484], eax
call esi
push ebx
push 0
push 0x45efb0
mov dword [ebx + 0x488], eax
call fcn.005614e6
push ebx
push 0
push 0x45f330
call fcn.005614e6
mov ecx, dword [ebx + 0x20]
add esp, 0x18
push 0
push 0xc8
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push str.Memory_error_
call fcn.004624b8
mov ecx, dword [ebx + 0x55c]
call fcn.00402330
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x4a4], 0
push edx
jmp 0x449a05
mov ecx, dword [ebx + 0x55c]
call fcn.00402520
mov eax, dword [ebx + 0x55c]
mov esi, dword [eax + 0x2ec]
push 1
push 0xff
push 0x190
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp + 8], esp
mov dword [ebp + 8], esp
call eax
cmp dword [esi - 4], edi
lea ecx, [esi - 4]
jl 0x4499ab
cmp eax, dword [esi - 0x10]
jne 0x4499ab
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4499dd
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4499c4
call fcn.00401170
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
inc eax
push eax
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0055f930
add esp, 0x10
mov edx, dword [ebp + 8]
add edi, 0x10
mov dword [edx], edi
mov ecx, ebx
call fcn.0041ab30
mov ecx, dword [ebx + 0x55c]
call fcn.00402330
mov dword [ebx + 0x4a4], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4