Function at 0x543710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov eax, dword [edi + 4]
cmp edi, esi
mov dword [esp + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], esi
mov byte [esp + 0x17], 0
mov byte [esp + 0x1f], 0
je 0x54440d
cmp dword [ebp + 0xc], esi
je 0x54440d
mov edx, dword [edi + 0x2c]
mov dword [esp + 0x10], esi
mov eax, 0x588c5c
mov ecx, dword [eax]
cmp ecx, edx
je 0x5437a1
jg 0x543794
mov ecx, dword [esp + 0x10]
add eax, 4
inc ecx
cmp eax, str.default
mov dword [esp + 0x10], ecx
jl 0x543777
jmp 0x5437a1
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x5437a1
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2e0]
mov dword [esp + 0x60], 0
test eax, eax
je 0x5437c8
mov ecx, dword [0x5a0c34]
push 0
push 0x1e
push ecx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x543814
mov edx, dword [edi + 0x2c]
mov ecx, dword [esp + 0x20]
push 0
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
call fcn.0042b240
add esp, 0x14
cmp eax, 0x3e8
jle 0x54380f
mov ecx, dword [esp + 0x20]
sub eax, 0x3e8
sub ecx, eax
mov dword [esp + 0x20], ecx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0xc]
lea ecx, [eax + edx*4]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 0x10]
jmp 0x54381e
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0x1130]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov dword [ebx + 0x1b84], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00545bc0
test eax, eax
jne 0x543868
mov ecx, ebx
call fcn.00543630
mov edx, dword [edi + 0x2c]
mov ecx, dword [0x596208]
add edi, 0x20
push edx
push edi
call fcn.00475ea0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esp + 0x24]
xor eax, eax
or edi, 0xffffffff
xor ecx, ecx
test edx, edx
jle 0x5438b3
lea edx, [ebx + 0x344]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2c]
mov edx, dword [edx]
test edx, edx
je 0x54389c
test eax, eax
je 0x543898
cmp eax, edx
jle 0x54389c
cmp eax, dword [ebp + 0x10]
jle 0x54389c
mov edi, ecx
mov eax, edx
mov edx, dword [esp + 0x2c]
inc ecx
add edx, 0x2b0
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jl 0x543881
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x2e0]
test eax, eax
mov dword [esp + 0x6c], edi
je 0x5438df
mov ecx, dword [0x5a0c34]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, dword [edx + 0x2c]
push edx
push 0x24
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x30]
push eax
mov dword [ebx + 0x1b8c], eax
call fcn.00428ce0
fdivr qword [0x567050]
mov edx, dword [ebx + 0x1b8c]
inc edx
push edx
fstp qword [ebx + 0x1b70]
call fcn.00428ce0
fdivr qword [0x567050]
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2e8], 0
mov ecx, dword [esp + 0x2c]
add esp, 8
fstp qword [ebx + 0x1b78]
mov eax, dword [eax + 0x2c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
test ecx, ecx
mov dword [esp + 0x70], eax
jl 0x543973
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
shl eax, 4
add eax, ebx
mov esi, dword [eax + 0x32c]
test esi, esi
mov dword [esp + 0x30], esi
je 0x543973
mov eax, dword [eax + 0x330]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea eax, [esi + edx*4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
jle 0x544216
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx + 0x2e4]
test edx, edx
jne 0x544216
test eax, eax
mov byte [esp + 0x15], 0
jle 0x5439b1
cmp eax, dword [ecx]
jle 0x544216
test dword [esp + 0x10], 0x3ff
jne 0x5439ca
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 0x10]
test edx, edx
jle 0x5439ed
mov edx, dword [ebx + 0x1b8]
test edx, edx
jne 0x5439ed
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx]
jg 0x5439ed
mov edx, dword [esp + 0x10]
inc edx
mov dword [ebx + 0x1b8], edx
test eax, eax
jle 0x543a0a
mov edx, dword [ebx + 0x1bc]
test edx, edx
jne 0x543a0a
cmp eax, dword [ecx]
jg 0x543a0a
mov eax, dword [esp + 0x10]
inc eax
mov dword [ebx + 0x1bc], eax
mov edx, dword [ecx + 0x24]
mov dword [ebx + 0x1b68], edx
mov eax, dword [ecx + 0x28]
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x1b6c], eax
mov eax, dword [esp + 0x10]
dec edx
cmp eax, edx
jge 0x543bd8
mov eax, dword [ecx + 0x2c]
mov edx, dword [esp + 0x70]
mov dword [ebx + 0x1b80], eax
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, edx
jle 0x543a4a
add ecx, edx
mov dword [ebx + 0x1b80], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp edx, 0x63
jle 0x543fdc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x543a6a
cmp eax, dword [ecx]
jg 0x543fdc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x543a79
cmp eax, dword [ecx]
jle 0x543fdc
fld qword [ecx + 0x24]
fcomp qword [0x567050]
mov dword [esp + 0x68], 1
mov byte [esp + 0x1f], 1
fnstsw ax
test ah, 0x41
jne 0x543fcf
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x543aa7
inc edx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x1b8c]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
push edx
push eax
call fcn.00429ac0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebx + 0x1b8c]
fstp qword [ebx + 0x1b58]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
push edx
push eax
call fcn.00429ac0
fstp qword [ebx + 0x1b60]
test edi, edi
jl 0x543c00
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edx]
jg 0x543c00
mov eax, dword [esp + 0x24]
mov ecx, ebx
push eax
call fcn.00543690
mov ecx, dword [ebp + 0x14]
lea eax, [edi*8]
mov edx, dword [esp + 0x2c]
sub eax, edi
push 0
push ecx
lea eax, [eax + eax*2]
push edx
mov dword [esp + 0x30], edi
lea ecx, [edi + eax*2]
shl ecx, 4
lea edx, [ecx + ebx + 0x328]
mov ecx, dword [0x596208]
push edx
call fcn.00476ab0
mov ecx, dword [esp + 0x24]
lea edx, [ecx*8]
sub edx, ecx
lea edx, [edx + edx*2]
lea edx, [ecx + edx*2]
shl edx, 4
add edx, ebx
test eax, eax
mov esi, dword [edx + 0x32c]
mov dword [esp + 0x30], esi
je 0x543b63
test esi, esi
je 0x543b7b
mov edx, dword [edx + 0x330]
mov byte [esp + 0x17], 0
lea eax, [edx + edx*4]
lea edx, [edx + eax*2]
lea eax, [esi + edx*4]
mov dword [esp + 0x3c], eax
xor eax, eax
xor edx, edx
test ecx, ecx
mov dword [esp + 0x38], 0xffffffff
jle 0x543bca
lea edi, [ebx + 0x344]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x18]
mov edi, dword [edi]
test edi, edi
je 0x543bb7
test eax, eax
je 0x543bad
cmp eax, edi
jle 0x543bb7
cmp eax, dword [esp + 0x2c]
jle 0x543bb7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
inc edx
add edi, 0x2b0
cmp edx, ecx
mov dword [esp + 0x18], edi
jl 0x543b95
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x6c], edx
jmp 0x543c04
mov eax, dword [ebx + 0x1b88]
test eax, eax
jle 0x543bed
mov dword [ebx + 0x1b80], eax
jmp 0x543a4e
mov eax, dword [ecx]
mov edx, dword [esp + 0x70]
add eax, edx
mov dword [ebx + 0x1b80], eax
jmp 0x543a4e
mov ecx, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0xb4], 2
mov byte [esp + 0x16], 0
je 0x543d6c
cmp esi, dword [esp + 0x3c]
jae 0x543d6c
mov eax, dword [esi]
mov edx, dword [ebx + 0x1b80]
cmp eax, edx
jge 0x543d6c
mov edi, dword [esp + 0xc]
mov edi, dword [edi]
cmp edi, eax
jl 0x543c63
mov eax, dword [esi]
cmp eax, edx
jge 0x543d68
cmp eax, edi
jge 0x543c5f
mov eax, dword [esp + 0x3c]
add esi, 0x2c
cmp esi, eax
jae 0x543d68
jmp 0x543c40
mov dword [esp + 0x30], esi
lea eax, [ecx*8]
mov byte [esp + 0x16], 1
sub eax, ecx
mov dword [esp + 0x18], esi
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
shl edx, 4
lea eax, [edx + ebx]
mov edx, dword [edx + ebx + 0x32c]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x2e0]
test edx, edx
je 0x543cc0
cmp byte [esp + 0x17], 0
jne 0x543cc0
mov ecx, dword [0x5a0c34]
mov eax, dword [eax + 0x354]
push eax
push 0x24
push ecx
mov ecx, dword [edx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x17], 1
mov eax, dword [ebx + ecx*4 + 0x1c0]
test eax, eax
jne 0x543cdb
mov edx, dword [esp + 0x10]
inc edx
mov dword [ebx + ecx*4 + 0x1c0], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x543cf4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], 1
inc eax
mov dword [esp + 0x5c], eax
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
shl eax, 4
mov eax, dword [eax + ebx + 0x354]
lea edi, [eax + eax*2]
lea edi, [edi + edi*4]
shl edi, 2
test ecx, ecx
mov dword [esp + 0x58], edi
jne 0x543d37
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x543d37
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x64], 1
inc ecx
mov dword [esp + 0x54], ecx
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x78], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x15], 1
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x543d8c
mov dword [esp + 0x30], esi
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov edi, dword [ebx + 0x1b80]
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax]
sub edi, ecx
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x54440d
lea edx, [esp + 0x84]
test edx, edx
je 0x54440d
fld qword [eax + 4]
fcom qword [ebx + 0x1b58]
fnstsw ax
test ah, 0x41
jne 0x543dbf
fstp st(0)
fld qword [ebx + 0x1b58]
fcom qword [ebx + 0x1b60]
fnstsw ax
test ah, 1
je 0x543dd4
fstp st(0)
fld qword [ebx + 0x1b60]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0xb0], ecx
mov eax, dword [edx]
fst qword [esp + 0x88]
fst qword [esp + 0x90]
fst qword [esp + 0x98]
fstp qword [esp + 0xa0]
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], eax
push ecx
mov ecx, ebx
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0x3ff00000
mov dword [esp + 0xb8], 1
call fcn.00542f70
test eax, eax
je 0x54440d
mov edx, dword [esp + 0xc]
fld qword [edx + 0x24]
fcomp qword [0x5733a0]
fnstsw ax
test ah, 0x41
jne 0x544176
mov eax, dword [esp + 0x18]
fld qword [eax + 0x24]
fcomp qword [0x5733a0]
fnstsw ax
test ah, 0x41
jne 0x543e92
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x84]
push ecx
push 1
push edi
push edx
push eax
mov ecx, ebx
call fcn.00544420
test eax, eax
je 0x54440d
mov ecx, dword [esp + 0x18]
fld qword [ecx + 0x24]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov al, byte [esp + 0x16]
test al, al
mov dword [esp + 0x18], edi
je 0x543fe9
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x84]
push edx
push edi
push eax
push esi
mov ecx, ebx
call fcn.00545a40
test eax, eax
je 0x54440d
fild dword [esp + 0x18]
fcomp qword [ebx + 0x1b68]
fnstsw ax
test ah, 1
je 0x543fe9
mov eax, dword [esp + 0x3c]
add esi, 0x2c
cmp esi, eax
mov dword [esp + 0x30], esi
jae 0x543fe9
mov ecx, dword [esi]
mov eax, dword [ebx + 0x1b80]
cmp ecx, eax
jge 0x543fe9
fld qword [esi + 0x24]
fcomp qword [0x567050]
inc edi
mov dword [esp + 0x18], edi
fnstsw ax
test ah, 0x41
jne 0x543f77
lea edx, [esp + 0x84]
mov ecx, ebx
push edx
push edi
push esi
call fcn.00545970
test eax, eax
je 0x54440d
fld qword [esi + 0x24]
fcomp qword [0x5733a0]
fnstsw ax
test ah, 0x41
jne 0x543f67
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x84]
push eax
push edi
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00544420
test eax, eax
je 0x54440d
fld qword [esi + 0x24]
call sub.MSVCRT.dll__ftol
lea edi, [edi + eax - 1]
mov dword [esp + 0x18], edi
mov al, byte [esp + 0x15]
test al, al
je 0x543eb0
fld qword [esp + 0x78]
fadd qword [esi + 0x24]
fstp qword [esp + 0x78]
fld qword [esp + 0x48]
fcomp qword [esi + 0x14]
fnstsw ax
test ah, 1
je 0x543faa
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
fld qword [esp + 0x40]
fcomp qword [esi + 0xc]
fnstsw ax
test ah, 0x41
jne 0x543eb0
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x543eb0
mov ecx, dword [ecx]
mov dword [ebx + 0x1b84], ecx
jmp 0x544176
mov dword [esp + 0x68], 0
jmp 0x544176
mov al, byte [esp + 0x15]
test al, al
je 0x544176
mov edx, dword [esp + 0xc]
fld qword [edx + 0x14]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 0x41
jne 0x5440b0
mov esi, edx
push esi
call dword [sym.imp.MSVCRT.dll_gmtime]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
add esp, 4
test eax, eax
push ecx
push edx
je 0x544064
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
mov ecx, dword [esi + 0x18]
add eax, 0x76c
push edx
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
push str.__high_value__.4lf_at__04d._02d._02d__02d:_02d_is_not_reached_from_the_least_timeframe__high_price__.4lf_mismatches_
lea eax, [esp + 0xe0]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x30
jmp 0x544087
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push eax
push ecx
push str.__high_value__.4lf_is_not_reached_from_the_least_timeframe__high_price__.4lf_mismatches_
lea edx, [esp + 0xcc]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea eax, [esp + 0xb8]
push eax
push str.TestGenerator:_unmatched_data_error_s
push 1
push 0x5960a0
call fcn.0046b660
mov eax, dword [ebx + 0x1b90]
add esp, 0x10
inc eax
mov dword [ebx + 0x1b90], eax
mov ecx, dword [esp + 0xc]
fld qword [ecx + 0xc]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x544176
mov esi, ecx
push esi
call dword [sym.imp.MSVCRT.dll_gmtime]
add esp, 4
test eax, eax
je 0x544120
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x10]
inc ecx
add edx, 0x76c
push ecx
mov ecx, dword [esi + 0xc]
push edx
push eax
push ecx
push str.__low_value__.4lf_at__04d._02d._02d__02d:_02d_is_not_reached_from_the_least_timeframe__low_price__.4lf_mismatches_
lea edx, [esp + 0xe0]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x30
jmp 0x54414d
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
push str.__low_value__.4lf_is_not_reached_from_the_least_timeframe__low_price__.4lf_mismatches_
lea ecx, [esp + 0xcc]
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
lea edx, [esp + 0xb8]
push edx
push str.TestGenerator:_unmatched_data_error_s
push 1
push 0x5960a0
call fcn.0046b660
mov eax, dword [ebx + 0x1b90]
add esp, 0x10
inc eax
mov dword [ebx + 0x1b90], eax
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 0x1b84]
mov ecx, 0xb
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x84]
inc eax
mov dword [esp + 0xb4], ecx
push edx
mov ecx, ebx
mov dword [esp + 0xb4], eax
call fcn.00542f70
test eax, eax
je 0x54440d
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
cmp ecx, eax
je 0x5441f2
mov dword [esp + 0x60], eax
mov ecx, dword [0x5a0c34]
push eax
mov eax, dword [ebx + 0x2e0]
push 0x1e
push ecx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0xc]
inc esi
add ecx, 0x2c
cmp esi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
jge 0x544216
mov edi, dword [esp + 0x6c]
mov eax, dword [ebp + 0x14]
mov esi, dword [esp + 0x30]
jmp 0x543992
mov ecx, ebx
call fcn.00543630
mov eax, dword [ebp + 8]
mov ecx, dword [0x596208]
mov edx, dword [eax + 0x2c]
add eax, 0x20
push edx
push eax
call fcn.00475ea0
mov eax, dword [ebx + 0x2e0]
xor edi, edi
cmp eax, edi
je 0x544253
mov ecx, dword [0x5a0c34]
mov eax, dword [eax + 0x20]
push edi
push 0x24
push ecx
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebx + 0x2e4]
cmp eax, edi
je 0x544297
mov eax, dword [ebx + 0x2d8]
cmp eax, edi
je 0x54440d
mov ecx, dword [eax + 0x10]
push edi
push ecx
call dword [sym.imp.MSVCRT.dll__chsize]
mov edx, dword [ebx + 0x2d8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
mov dword [ebx + 0x2d8], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebx + 0x1bc]
mov eax, dword [ebx + 0x1b90]
cmp esi, edi
mov dword [ebx + 0x2f0], edi
mov dword [ebx + 0x1e4], eax
jle 0x5442b9
mov dword [esp + 0x20], esi
jmp 0x5442bd
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov dword [ebx + 0xd8], esi
cmp edx, edi
jle 0x5442e1
lea ecx, [edx + edx*4]
lea eax, [edx + ecx*2]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + eax*4 - 0x2c]
mov dword [ebx + 0xdc], eax
jmp 0x5442f3
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov dword [ebx + 0xdc], edx
mov edx, esi
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
lea edi, [eax + eax*4]
lea eax, [eax + edi*2]
mov edi, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4 - 0x2c]
xor ecx, ecx
cmp edi, ecx
mov dword [ebx + 0xe0], eax
je 0x54431a
cmp edi, eax
jge 0x54431a
mov dword [ebx + 0xe0], edi
cmp esi, edx
jne 0x54432c
mov dword [ebx + 0xe8], ecx
mov dword [ebx + 0xec], ecx
jmp 0x5443ab
mov edi, dword [ebx + 0x1b8]
cmp edi, 0x64
jle 0x544361
sub esi, edi
sub edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edx
jns 0x54434b
xor edx, edx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x5c]
sub ecx, edi
jns 0x544355
xor ecx, ecx
mov eax, dword [esp + 0x54]
sub eax, edi
jns 0x544369
xor eax, eax
jmp 0x544369
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
sub esi, eax
sub eax, ecx
mov dword [esp + 0x28], esi
sub ecx, edx
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fmul qword [0x57c868]
fild dword [esp + 0x28]
mov dword [esp + 0x28], ecx
fmul qword [0x579c10]
faddp st(1)
fild dword [esp + 0x28]
fmul qword [0x57b2a0]
faddp st(1)
fiadd dword [esp + 0x34]
fidiv dword [esp + 0x20]
fstp qword [ebx + 0xe8]
mov ecx, ebx
call fcn.00543300
mov ecx, dword [ebx + 0x2d8]
mov esi, eax
xor eax, eax
test ecx, ecx
je 0x5443d4
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebx + 0x2d8], 0
test esi, esi
je 0x5443f9
test eax, eax
jne 0x5443f9
mov al, byte [esp + 0x1f]
test al, al
jne 0x5443eb
push str.TestGenerator:_no_ticks_generated
jmp 0x5443fe
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.TestGenerator:_write_file_error
push 1
push 0x5960a0
call fcn.0046b660
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10