Function at 0x442a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d8e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x488]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x45c], 0
je 0x442ab7
push 0
push 0
push 0x586c90
call fcn.0045802b
push esi
jmp 0x4431f8
lea eax, [ebx + 0x52c]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionA.ini
mov dword [ebx + 0x45c], 1
mov dword [ebx + 0x468], 0
call fcn.00401a90
mov ecx, ebx
call fcn.00425420
lea ecx, [ebx + 0xe54]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionB.ini
call fcn.00401a90
mov ecx, ebx
call fcn.00425420
lea edx, [ebx + 0x177c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.TestConditionC.ini
call fcn.00401a90
mov ecx, ebx
call fcn.00425420
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x442b36
lea eax, [ebx + 0x2dfc]
push eax
jmp 0x442b42
cmp eax, 2
jne 0x442b4d
lea edx, [ebx + 0x2e00]
push edx
lea ecx, [ebx + 0x2df8]
call fcn.004019a0
mov ecx, ebx
call fcn.00442170
mov ecx, ebx
call fcn.0043da40
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 0x442bbc
movzx edx, word [ebx + 0x15e]
mov eax, dword [ebx + 0xc0]
cmp eax, edx
jle 0x442bbc
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.00462438
mov ecx, eax
call fcn.004627fc
cmp dword [ebx + 0x514], 0
jne 0x442c17
push 0x2f0
call fcn.00455a84
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x442c08
lea ecx, [ebx + 0x518]
push ecx
lea edx, [ebx + 0x4a0]
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.00403020
jmp 0x442c0a
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x514], 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 + 0x514]
add esp, 4
call fcn.00402e00
mov eax, 0xffffdb18
sub eax, ebx
lea edi, [ebx + 0x2598]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x2d
jmp 0x442c5b
mov eax, dword [ebp - 0x1c]
mov esi, dword [edi]
add eax, edi
add eax, dword [ebx + 0x514]
sub esi, 0x10
mov eax, dword [eax]
lea ecx, [eax - 0x10]
cmp ecx, esi
je 0x442cb8
cmp dword [esi + 0xc], 0
jl 0x442cac
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x442cac
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 0x442ca2
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 0x442cb8
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004017e0
add edi, 4
dec dword [ebp - 0x18]
jne 0x442c58
cmp dword [ebx + 0x2d84], 1
jne 0x442db5
mov edx, dword [ebx + 0x514]
mov eax, dword [ebx + 0x754]
mov dword [edx + 0x2cc], eax
mov ecx, dword [ebx + 0x514]
mov edx, dword [ebx + 0x750]
mov dword [ecx + 0x2d0], edx
lea eax, [ebx + 0x974]
push eax
lea ecx, [ebx + 0x8c0]
push ecx
mov ecx, dword [ebx + 0x514]
call fcn.004034a0
mov edx, dword [ebx + 0x514]
mov dword [ebx + 0x22b4], eax
lea esi, [edx + 0x218]
lea edi, [ebx + 0x2430]
mov ecx, 0x2d
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x164]
lea edi, [ebx + 0x24e4]
mov ecx, 0x2d
rep movsd dword es:[edi], dword [esi]
test eax, eax
jle 0x442de0
push 1
push 0xff
push 0x190
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push 0x5873f0
call fcn.00401a90
mov ecx, ebx
call fcn.00418b40
mov edx, dword [ebx + 0x514]
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 eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00418b40
mov ecx, dword [ebx + 0x514]
call fcn.00402330
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x45c], 0
push eax
jmp 0x4431f8
push 0xb4
xor edi, edi
lea ecx, [ebx + 0x2430]
push edi
push ecx
call fcn.00555b00
push 0xb4
lea edx, [ebx + 0x24e4]
push edi
push edx
call fcn.00555b00
add esp, 0x18
jmp 0x442de2
xor edi, edi
mov ecx, dword [ebx + 0x514]
call fcn.004026b0
mov dword [ebp - 0x10], edi
cmp eax, 1
jne 0x4431a2
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 + 0x514]
push edx
push eax
call fcn.00402a70
cmp eax, 1
je 0x442e4c
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 + 0x514]
call fcn.00402a70
movzx edx, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x514]
push edx
push 0x60
push 0x3007
push 0x60
call fcn.00402a40
movzx eax, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x514]
push eax
push 0x60
push 0x3007
push 0x60
call fcn.00402a40
movzx ecx, byte [ebx + 0x163]
push ecx
mov ecx, dword [ebx + 0x514]
push 0x60
push 0x3007
push 0x64
call fcn.00402a40
movzx edx, byte [ebx + 0x163]
mov ecx, dword [ebx + 0x514]
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 + 0x514]
push edx
push eax
call fcn.00402a70
mov cx, word [ebp - 0x10]
cmp cx, word [ebx + 0x166]
je 0x442fae
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x442f05
lea edx, [ebx + 0x2e04]
push edx
jmp 0x442f11
cmp eax, 2
jne 0x442f1c
lea eax, [ebx + 0x2e08]
push eax
lea ecx, [ebx + 0x2df8]
call fcn.004019a0
mov ecx, ebx
call fcn.00442170
mov ecx, ebx
call fcn.0043da40
mov edi, dword [ebx + 0x514]
add edi, 8
mov ecx, 0x29
lea esi, [ebx + 0x15c]
rep movsd dword es:[edi], dword [esi]
fld dword [ebx + 0x524]
push ecx
mov ecx, dword [ebx + 0x514]
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 + 0x514]
call fcn.00402a70
mov dx, word [ebp - 0x10]
cmp dx, word [ebx + 0x166]
je 0x442fac
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.00418b40
xor edi, edi
mov ecx, dword [ebx + 0x514]
call fcn.00402c10
movzx eax, word [ebx + 0x1b4]
mov ecx, dword [ebx + 0x1b0]
push 2
push eax
push ecx
mov ecx, ebx
call fcn.0041b0f0
cmp eax, edi
jne 0x44302a
mov ecx, dword [ebx + 0x514]
call fcn.00402520
mov edx, dword [ebx + 0x514]
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.00418b40
mov ecx, dword [ebx + 0x514]
call fcn.00402330
mov eax, dword [ebp - 0x14]
push eax
jmp 0x4431f2
fld dword [ebx + 0xa38]
call fcn.00555b80
push eax
push 3
mov ecx, ebx
call fcn.00415e60
movzx ecx, word [ebx + 0x15c]
movzx esi, word [ebx + 0x15e]
mov edx, dword [ebx + 0x514]
imul esi, ecx
mov dword [ebx + 0x158], edi
mov eax, dword [edx + 4]
lea esi, [esi + esi*2 + 0x400]
push esi
mov dword [ebx + 0x464], eax
mov dword [ebx + 0x46c], edi
call fcn.005559f1
mov edi, eax
push esi
mov dword [ebx + 0x42c], edi
call fcn.005559f1
push esi
mov dword [ebp + 8], eax
mov dword [ebx + 0x434], eax
call fcn.005559f1
push esi
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x430], eax
call fcn.005559f1
add esp, 0x10
mov dword [ebx + 0x438], eax
test edi, edi
je 0x443179
cmp dword [ebp + 8], 0
je 0x443179
cmp dword [ebp - 0x20], 0
je 0x443179
test eax, eax
je 0x443179
push esi
push 0
push edi
call fcn.00555b00
mov ecx, dword [ebx + 0x434]
push esi
push 0
push ecx
call fcn.00555b00
mov edx, dword [ebx + 0x430]
push esi
push 0
push edx
call fcn.00555b00
mov eax, dword [ebx + 0x438]
push esi
push 0
push eax
call fcn.00555b00
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 + 0x43c], eax
call esi
push ebx
push 0
push 0x454b40
mov dword [ebx + 0x440], eax
call fcn.00556ff6
push ebx
push 0
push 0x454ec0
call fcn.00556ff6
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.0045802b
mov ecx, dword [ebx + 0x514]
call fcn.00402330
mov edx, dword [ebp - 0x14]
mov dword [ebx + 0x45c], 0
push edx
jmp 0x4431f8
mov ecx, dword [ebx + 0x514]
call fcn.00402520
mov eax, dword [ebx + 0x514]
mov eax, dword [eax + 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.00418b40
mov ecx, dword [ebx + 0x514]
call fcn.00402330
mov ecx, dword [ebp - 0x14]
push ecx
mov dword [ebx + 0x45c], edi
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