Function at 0x45a6d0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58452c
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5e9eac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00466a26
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00477a46
mov ebx, eax
test ebx, ebx
je 0x45a7af
call fcn.00464877
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45a735
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
push 0x65
mov dword [ebp - 4], 0
call fcn.00464766
test eax, eax
je 0x45a764
push 0x65
push eax
lea ecx, [ebp - 0x18]
call fcn.00401660
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x45a78c
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45a7af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0xb8]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
lea eax, [ebp - 0x18]
push eax
mov byte [esi + 0x4654], 0
call fcn.00404b80
push str.Temp.ini
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], 1
call fcn.00409330
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ebx, 3
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a82d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.Mode
mov byte [ebp - 4], 4
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 5
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x4600], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.IndexInput
mov byte [ebp - 4], 6
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 7
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x5084], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.SaveImage
mov byte [ebp - 4], 8
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 9
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x467c], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.DebugInfo
mov byte [ebp - 4], 0xa
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 0xb
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x4680], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.ControlType
mov byte [ebp - 4], 0xc
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 0xd
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x5040], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.LightSourceChromaEnable
mov byte [ebp - 4], 0xe
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 0xf
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x5044], eax
mov eax, dword [ebp - 0x10]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.LightSourceType
mov byte [ebp - 4], 0x10
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ProgramMode
mov byte [ebp - 4], 0x11
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.127.0.0.1
mov dword [esi + 0x5048], eax
call fcn.00401a90
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x12
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.IP_Addr
mov byte [ebp - 4], 0x13
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.Server
mov byte [ebp - 4], 0x14
call fcn.00401a90
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], bl
call fcn.00404590
add esp, 0x14
lea ecx, [esi + 0x5068]
push eax
mov byte [ebp - 4], 0x15
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45aaf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push 0xd05
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ClientPortNo
mov byte [ebp - 4], 0x16
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Server
mov byte [ebp - 4], 0x17
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x506c], eax
mov eax, dword [ebp - 0x10]
push 0xd34
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ServerPortNo
mov byte [ebp - 4], 0x18
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Server
mov byte [ebp - 4], 0x19
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0xc
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5993c8
mov dword [esi + 0x5070], eax
call fcn.00401a90
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x1a
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.DataPath
mov byte [ebp - 4], 0x1b
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov byte [ebp - 4], 0x1c
push str.3380P
call fcn.00401a90
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], bl
call fcn.00404590
add esp, 0x14
lea ecx, [esi + 0x5074]
push eax
mov byte [ebp - 4], 0x1d
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ac30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x598670
call fcn.00401a90
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x1e
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Separator
mov byte [ebp - 4], 0x1f
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.3380P
mov byte [ebp - 4], 0x20
call fcn.00401a90
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], bl
call fcn.00404590
add esp, 0x14
lea ecx, [esi + 0x5078]
push eax
mov byte [ebp - 4], 0x21
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45acc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.XX.csv
call fcn.00401a90
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push eax
mov byte [ebp - 4], 0x22
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Label
mov byte [ebp - 4], 0x23
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.3380P
mov byte [ebp - 4], 0x24
call fcn.00401a90
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], bl
call fcn.00404590
add esp, 0x14
lea edi, [esi + 0x507c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x25
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45ad58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00404b80
push str.Config_
push eax
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 0x26
call fcn.00409330
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0x27
call fcn.00419b40
add esp, 0x1c
push eax
mov ecx, edi
mov byte [ebp - 4], 0x28
call fcn.004019a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x27
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45adb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 0x26
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45add8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45adfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x2c], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.iSerialPortNo
mov byte [ebp - 4], 0x29
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.SerialPort
mov byte [ebp - 4], 0x2a
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x512c], eax
mov eax, dword [ebp - 0x10]
push 8
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.iDataBits
mov byte [ebp - 4], 0x2b
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.SerialPort
mov byte [ebp - 4], 0x2c
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x5130], eax
mov eax, dword [ebp - 0x10]
push 0x4b00
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.iBaudRate
mov byte [ebp - 4], 0x2d
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.SerialPort
mov byte [ebp - 4], 0x2e
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov dword [esi + 0x513c], eax
mov eax, dword [ebp - 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x30], esp
mov edi, esp
push eax
call fcn.00401400
add eax, 0x10
mov dword [edi], eax
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.iStopBit
mov byte [ebp - 4], 0x2f
call fcn.00401a90
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.SerialPort
mov byte [ebp - 4], 0x30
call fcn.00401a90
mov byte [ebp - 4], bl
call fcn.00404470
add esp, 0x10
mov ecx, esi
mov dword [esi + 0x5138], eax
call fcn.004187f0
mov ecx, esi
call fcn.0046f9e3
mov ecx, esi
mov dword [esi + 0x4658], eax
call fcn.00419cd0
push 0x10000
call fcn.00462f23
add esp, 4
lea ecx, [esi + 0x574]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.TestConditionA.ini
mov dword [esi + 0x200], eax
call fcn.00401a90
mov ecx, esi
call fcn.0042b500
lea edx, [esi + 0x101c]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.TestConditionB.ini
call fcn.00401a90
mov ecx, esi
call fcn.0042b500
lea eax, [esi + 0x1ac4]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.TestConditionC.ini
call fcn.00401a90
mov ecx, esi
call fcn.0042b500
lea edx, [esi + 0x3358]
lea ecx, [esi + 0x3354]
push edx
call fcn.004019a0
mov ecx, esi
call fcn.0044b800
mov ecx, esi
call fcn.00429a00
mov ecx, esi
call fcn.004290f0
mov ecx, esi
call fcn.0042aa90
push 0x592f0c
lea ecx, [ebp - 0x14]
call fcn.00401a90
push 0x66
mov byte [ebp - 4], 0x31
call fcn.00464766
xor edi, edi
cmp eax, edi
je 0x45b020
push 0x66
push eax
lea ecx, [ebp - 0x14]
call fcn.00401660
push 1
push 0x596070
lea ecx, [ebp - 0x14]
call fcn.00401720
mov eax, dword [esi + 0x4610]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401720
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0046fa6f
lea edx, [ebp - 0x14]
lea ecx, [esi + 0x4614]
push edx
call fcn.004019a0
lea eax, [esi + 0x4b8]
push eax
mov dword [esi + 0x158], 2
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x4d0]
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x320
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.NULL
mov dword [esi + 0x55c], edi
call fcn.00401a90
push edi
push 0xffff
push 0x3ed
mov ecx, esi
call fcn.00419550
fld dword [0x5956a8]
mov ecx, esi
fstp dword [esi + 0x30c0]
call fcn.0041ad70
mov edx, 1
mov dword [esi + 0x4a4], edi
mov dword [esi + 0x30b8], edi
mov dword [esi + 0x30bc], edi
mov dword [esi + 0x490], edi
mov dword [esi + 0x484], edi
mov dword [esi + 0x488], edi
mov dword [esi + 0x48c], edi
mov dword [esi + 0x498], edi
mov dword [esi + 0x4a0], edx
mov dword [esi + 0x49c], edi
mov dword [esi + 0x4650], edi
mov dword [esi + 0x5220], edx
cmp dword [esi + 0x32fc], edx
jne 0x45b205
mov eax, dword [esi + 0x5040]
mov dword [esi + 0x49c], edx
cmp eax, edx
jne 0x45b14d
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0x462d40
mov dword [esi + 0x494], eax
call fcn.00564b66
add esp, 0xc
jmp 0x45b200
cmp eax, 2
je 0x45b1ac
cmp eax, 4
je 0x45b1ac
cmp eax, ebx
jne 0x45b205
mov eax, dword [esi + 0x5130]
push 0x400
push edx
mov edx, dword [esi + 0x5138]
push edx
mov edx, dword [esi + 0x513c]
push eax
mov eax, dword [esi + 0x512c]
push 0x4e
push edx
push eax
lea ecx, [esi + 0x5094]
push esi
call fcn.00405010
lea ecx, [esi + 0x5094]
call fcn.00405430
push 0x592f0c
lea ecx, [esi + 0x5140]
call fcn.00401a50
jmp 0x45b200
push 0x80c
call fcn.00462ef4
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x32
cmp eax, edi
je 0x45b1ce
push esi
mov ecx, eax
call fcn.004039f0
jmp 0x45b1d0
xor eax, eax
push edi
push 0x3f
push 1
push edi
mov ecx, eax
mov byte [ebp - 4], 0x31
mov dword [esi + 0x504c], eax
call fcn.00465c16
mov ecx, dword [esi + 0x506c]
mov eax, dword [esi + 0x5068]
push ecx
mov ecx, dword [esi + 0x504c]
push eax
call fcn.00465799
mov edx, 1
cmp dword [esi + 0x5040], 4
jne 0x45b26c
push 0x808
call fcn.00462ef4
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x33
cmp eax, edi
je 0x45b22f
mov ecx, eax
call fcn.004127a0
jmp 0x45b231
xor eax, eax
mov edx, dword [esi + 0x5070]
push edi
push 0x3f
push 1
push edx
mov ecx, eax
mov byte [ebp - 4], 0x31
mov dword [esi + 0x5050], eax
call fcn.00465c16
mov eax, dword [esi + 0x5050]
mov eax, dword [eax + 4]
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
mov ecx, esi
call fcn.00442ce0
mov edx, 1
cmp dword [esi + 0x5044], edx
jne 0x45b280
mov ecx, esi
call fcn.004430d0
mov edx, 1
cmp dword [esi + 0x32f8], edx
jne 0x45b2af
cmp dword [esi + 0x32fc], edx
je 0x45b2af
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0x461e50
mov dword [esi + 0x490], eax
call fcn.00564b66
add esp, 0xc
mov edx, dword [esi + 0x33b0]
fld1
mov eax, dword [edx + 0x160]
fstp dword [esi + 0x463c]
lea ecx, [esi + 0x33b0]
push edi
push 0x89
mov dword [esi + 0x465c], edi
call eax
mov ecx, esi
call fcn.00441880
lea ecx, [esi + 0x3b20]
push ecx
lea ecx, [esi + 0x34dc]
call fcn.0041a030
lea ecx, [esi + 0x33b0]
call fcn.0040b060
mov edx, dword [esi + 0x43f0]
lea ecx, [esi + 0x43f0]
lea eax, [esi + 0x43ac]
push edi
mov dword [esi + 0x45f8], eax
mov eax, dword [edx + 0x160]
push 0x8b
mov dword [esi + 0x45fc], esi
call eax
mov edx, dword [esi + 0x4164]
mov eax, dword [edx + 0x160]
lea ecx, [esi + 0x4164]
push edi
push 0x8a
call eax
mov ecx, dword [esi + 0x1b0]
movzx edx, word [esi + 0x1b4]
lea eax, [esi + 0x55c]
mov dword [esi + 0x422c], eax
lea eax, [esi + 0x463c]
mov dword [esi + 0x4230], eax
lea eax, [esi + 0x43ac]
mov dword [esi + 0x43c0], ecx
lea ecx, [esi + 0x4164]
mov dword [esi + 0x43a0], eax
mov dword [esi + 0x421c], esi
mov dword [esi + 0x43c4], edx
call fcn.00406ab0
xor eax, eax
mov dword [esi + 0x466c], eax
mov dword [esi + 0x4670], edi
mov dword [esi + 0x4660], eax
mov dword [esi + 0x4664], edi
mov dword [esi + 0x4674], eax
mov dword [esi + 0x4678], edi
mov dword [esi + 0x4668], edi
mov dword [esi + 0x5008], 1
mov dword [esi + 0x500c], 2
mov dword [esi + 0x5010], ebx
mov dword [esi + 0x5014], 4
mov dword [esi + 0x5018], 5
mov dword [esi + 0x501c], 6
mov dword [esi + 0x5020], 7
mov dword [esi + 0x5024], eax
mov dword [esi + 0x5028], eax
mov dword [esi + 0x502c], eax
mov dword [esi + 0x5030], eax
mov dword [esi + 0x5034], eax
mov dword [esi + 0x5038], eax
mov dword [esi + 0x503c], eax
mov ecx, esi
mov dword [esi + 0x5090], edi
call fcn.00445d20
mov ecx, esi
call fcn.0041bf30
mov ecx, esi
call fcn.00448910
push 2
push ebx
mov ecx, esi
mov dword [esi + 0x5218], edi
call fcn.00417bf0
mov dword [esi + 0x256c], edi
mov dword [esi + 0x2570], edi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [esi + 0x2574], edi
mov dword [esi + 0x2578], edi
mov dword [esi + 0x460c], edi
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b492
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b4b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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