Function at 0x47c957
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df5a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov dword [0x509b6c], 0
mov dword [0x509a78], 0
mov dword [0x509a7c], 0x3ff00000
mov byte [0x5093c9], 0
mov al, byte [0x5093c9]
mov byte [0x5093c8], al
mov byte [0x5080a2], 0
movsx ecx, byte [0x5080a2]
mov dword [0x508008], ecx
mov edx, dword [0x508008]
mov dword [0x50800c], edx
mov eax, dword [0x50800c]
mov dword [0x508004], eax
mov ecx, dword [0x508004]
mov dword [0x508014], ecx
mov byte [0x507ff9], 2
mov dword [0x50a084], 0
mov byte [0x5080a0], 1
mov byte [0x50a032], 0
movsx edx, byte [0x50a032]
mov dword [0x509b50], edx
mov eax, dword [0x509b50]
mov dword [0x509b58], eax
mov dword [0x509b54], 1
mov dword [0x509b60], 0x60
call fcn.00428fc3
mov dword [0x5080ac], 0x5080b8
mov ecx, dword [0x5080ac]
mov dword [0x5080a8], ecx
mov edx, dword [0x5080a8]
mov dword [0x5080b0], edx
mov eax, dword [0x5080b0]
mov dword [eax + 0x30], 0
mov ecx, dword [0x5080b0]
mov dword [ecx], 0
mov dword [0x50812c], 0x508138
mov edx, dword [0x50812c]
mov dword [0x508128], edx
mov eax, dword [0x508128]
mov dword [0x508130], eax
mov ecx, dword [0x508130]
mov dword [ecx + 0x18], 0
mov edx, dword [0x508130]
mov dword [edx], 0
fld qword [0x4f9450]
fdiv qword [0x4e2ff0]
fstp qword [0x509a28]
mov dword [0x5098d0], 0
mov dword [0x5098d4], 0x3ff00000
mov dword [0x50a074], 0xf
mov dword [0x50a070], 0
mov dword [0x50a06c], 0xb
mov dword [0x50a068], 0xe
mov dword [0x50a05c], 9
mov dword [0x50a058], 0xd
mov dword [0x50a064], 3
mov dword [0x50a054], 0xc
mov dword [0x508010], 0
mov eax, dword [0x508010]
mov dword [0x508014], eax
mov dword [0x4f94c4], 1
mov ecx, dword [0x4f94c4]
mov dword [0x4f94c8], ecx
mov dword [0x509b6c], 0
mov byte [0x507867], 0
mov byte [0x509f30], 0
call fcn.0043020d
call fcn.0042f8bb
call fcn.0042d0c8
call fcn.0044ff6b
cmp dword [0x507878], 0
jle 0x47cf68
push 0
mov dx, word [0x50a09a]
push edx
call fcn.00450322
add esp, 8
push 0
mov ax, word [0x4f94bc]
push eax
call fcn.00450322
add esp, 8
push 0
mov cx, word [0x4f94be]
push ecx
call fcn.00450322
add esp, 8
push 0
mov dx, word [0x4f94c0]
push edx
call fcn.00450322
add esp, 8
mov eax, dword [0x507438]
add eax, 1
mov dword [0x507434], eax
mov dword [ebp - 0x5a8], 0
jmp 0x47cbe4
mov ecx, dword [ebp - 0x5a8]
add ecx, 1
mov dword [ebp - 0x5a8], ecx
cmp dword [ebp - 0x5a8], 4
jge 0x47cc27
mov edx, dword [ebp - 0x5a8]
movsx eax, word [edx*2 + 0x507e4c]
test eax, eax
jl 0x47cc25
movsx ecx, word [0x5078f8]
mov edx, 1
sub edx, ecx
push edx
mov eax, dword [ebp - 0x5a8]
mov cx, word [eax*2 + 0x507e4c]
push ecx
call fcn.004504e7
add esp, 8
jmp 0x47cbd5
movsx edx, word [0x507e46]
test edx, edx
jl 0x47cc49
mov ax, word [0x5078f4]
push eax
mov cx, word [0x507e46]
push ecx
call fcn.004504e7
add esp, 8
call fcn.0045e463
push 0
call fcn.004503db
add esp, 4
test eax, eax
jne 0x47cce6
push 1
call fcn.004503db
add esp, 4
test eax, eax
jne 0x47cce6
push 2
call fcn.004503db
add esp, 4
test eax, eax
jne 0x47cce6
push 3
call fcn.004503db
add esp, 4
test eax, eax
jne 0x47cce6
push 0
call fcn.004513aa
add esp, 4
fcomp qword [0x4e2d78]
fnstsw ax
test ah, 0x40
je 0x47cce6
push 1
call fcn.004513aa
add esp, 4
fcomp qword [0x4e2d78]
fnstsw ax
test ah, 0x40
je 0x47cce6
push 2
call fcn.004513aa
add esp, 4
fcomp qword [0x4e2d78]
fnstsw ax
test ah, 0x40
je 0x47cce6
push 3
call fcn.004513aa
add esp, 4
fcomp qword [0x4e2d78]
fnstsw ax
test ah, 0x40
jne 0x47ccf4
push 0
push 0
push 0x4fea64
call fcn.004cc864
mov dword [0x5093c0], 4
cmp dword [0x5093c0], 1
jl 0x47cd1f
cmp dword [0x5093c0], 8
jg 0x47cd1f
mov edx, dword [0x5093c0]
push edx
call fcn.00451465
add esp, 4
call fcn.00452363
mov eax, dword [0x509614]
push eax
mov ecx, dword [0x509610]
push ecx
call fcn.00443ede
add esp, 8
fmul qword [0x4e3220]
sub esp, 8
fstp qword [esp]
call fcn.0045248c
add esp, 8
mov edx, dword [0x5095d4]
push edx
mov eax, dword [0x5095d0]
push eax
call fcn.0045292f
add esp, 8
mov ecx, dword [0x5095f4]
push ecx
mov edx, dword [0x5095f0]
push edx
call fcn.00452594
add esp, 8
lea ecx, [ebp - 0x5a4]
call fcn.004017e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c4]
call fcn.004aa58a
mov byte [ebp - 4], 1
push 0
push str.LAFunc.dll
push 0x50c780
lea eax, [ebp - 0x5cc]
push eax
call fcn.004c0285
mov dword [ebp - 0x618], eax
mov ecx, dword [ebp - 0x618]
mov dword [ebp - 0x61c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x61c]
call fcn.00401800
push eax
lea ecx, [ebp - 0x5c4]
call fcn.004aa64d
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x5c8], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5cc]
call fcn.004c003c
mov edx, dword [ebp - 0x5c8]
and edx, 0xff
test edx, edx
je 0x47ce18
push str.Missing_file:_LAFunc.dll_n
lea ecx, [ebp - 0x5a4]
call fcn.004c0179
push 0
push str.VFunc.dll
push 0x50c780
lea eax, [ebp - 0x5d4]
push eax
call fcn.004c0285
mov dword [ebp - 0x620], eax
mov ecx, dword [ebp - 0x620]
mov dword [ebp - 0x624], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x624]
call fcn.00401800
push eax
lea ecx, [ebp - 0x5c4]
call fcn.004aa64d
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x5d0], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5d4]
call fcn.004c003c
mov edx, dword [ebp - 0x5d0]
and edx, 0xff
test edx, edx
je 0x47ce97
push str.Missing_file:_VFunc.dll_n
lea ecx, [ebp - 0x5a4]
call fcn.004c03cc
push 0x50c5fc
lea eax, [ebp - 0x5a4]
push eax
call fcn.004608d0
and eax, 0xff
test eax, eax
je 0x47cec6
push 0
push 0
lea ecx, [ebp - 0x5a4]
call fcn.00401800
push eax
call fcn.004cc864
mov dword [0x507434], 1
movsx ecx, word [0x507e58]
test ecx, ecx
jl 0x47cefa
movsx edx, word [0x5078fa]
mov eax, 1
sub eax, edx
push eax
mov cx, word [0x507e58]
push ecx
call fcn.004504e7
add esp, 8
movsx edx, word [0x507e56]
test edx, edx
jl 0x47cf24
movsx eax, word [0x5078fa]
mov ecx, 1
sub ecx, eax
push ecx
mov dx, word [0x507e56]
push edx
call fcn.004504e7
add esp, 8
movsx eax, word [0x507e54]
test eax, eax
jl 0x47cf47
mov cx, word [0x5078fa]
push ecx
mov dx, word [0x507e54]
push edx
call fcn.004504e7
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c4]
call fcn.004aa5c7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5a4]
call fcn.004c003c
push 0x5076e0
push 0
push 0x4feaec
mov ecx, 0x50c780
call fcn.00401800
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x24
call fcn.004c05bb
add esp, 4
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x5dc], 0
je 0x47cfb8
mov ecx, dword [ebp - 0x5dc]
call fcn.0048f7c0
mov dword [ebp - 0x628], eax
jmp 0x47cfc2
mov dword [ebp - 0x628], 0
mov eax, dword [ebp - 0x628]
mov dword [ebp - 0x5d8], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5d8]
mov dword [0x506ff0], ecx
push 0
push 0x47eaba
push 0x47ea35
mov ecx, dword [0x506ff0]
call fcn.0048f82f
push 0xc
call fcn.004c05bb
add esp, 4
mov dword [ebp - 0x5e4], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x5e4], 0
je 0x47d02b
mov ecx, dword [ebp - 0x5e4]
call fcn.0048685e
mov dword [ebp - 0x62c], eax
jmp 0x47d035
mov dword [ebp - 0x62c], 0
mov edx, dword [ebp - 0x62c]
mov dword [ebp - 0x5e0], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5e0]
mov dword [0x506fec], eax
push 0xc
call fcn.004c05bb
add esp, 4
mov dword [ebp - 0x5ec], eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x5ec], 0
je 0x47d086
mov ecx, dword [ebp - 0x5ec]
call fcn.0048685e
mov dword [ebp - 0x630], eax
jmp 0x47d090
mov dword [ebp - 0x630], 0
mov ecx, dword [ebp - 0x630]
mov dword [ebp - 0x5e8], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5e8]
mov dword [0x506fe8], edx
push 0xc
call fcn.004c05bb
add esp, 4
mov dword [ebp - 0x5f4], eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x5f4], 0
je 0x47d0e2
mov ecx, dword [ebp - 0x5f4]
call fcn.0048685e
mov dword [ebp - 0x634], eax
jmp 0x47d0ec
mov dword [ebp - 0x634], 0
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x5f0], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x5f0]
mov dword [0x506fe4], ecx
push 0xb8
call fcn.004c05bb
add esp, 4
mov dword [ebp - 0x5fc], eax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x5fc], 0
je 0x47d141
mov ecx, dword [ebp - 0x5fc]
call fcn.0040b800
mov dword [ebp - 0x638], eax
jmp 0x47d14b
mov dword [ebp - 0x638], 0
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x5f8], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5f8]
mov dword [0x506fd8], eax
push 0
push 3
push 1
push 0
push 0
mov ecx, 0x507ec8
call fcn.00419b70
push 0
lea ecx, [ebp - 0x588]
call fcn.00416b00
mov dword [ebp - 4], 9
mov ecx, dword [0x506fe4]
push ecx
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4e0]
push ecx
push str.home.nc
push 0x50c780
lea edx, [ebp - 0x600]
push edx
call fcn.004c0285
mov dword [ebp - 0x63c], eax
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x640], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x640]
call fcn.00401800
push eax
call fcn.0044ceab
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x600]
call fcn.004c003c
mov dword [0x507e7c], 0xd
mov dword [0x507e84], 0
mov dword [0x507e88], 0xff
mov dword [0x507e8c], 0xff00
mov dword [0x507e90], 0xff0000
mov dword [0x507e94], 0xffffff
mov dword [0x507e98], 0xffffff
mov dword [0x507e9c], 0xffffff
mov dword [0x507ea0], 0xff00ff
mov dword [0x507ea4], 0x404040
mov dword [0x507ea8], 0x7f7f7f
mov dword [0x507eac], 0x7f7f7f
mov dword [0x507eb0], 0xffff00
mov dword [0x507eb4], 0x7f7f7f
mov dword [0x507eb8], 0xff00ff
mov dword [0x507ebc], 0xffff
mov dword [0x507ec0], 0xffffff
mov ecx, dword [0x507e84]
push ecx
push 0
push 0
push 0
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov edx, dword [0x507e88]
push edx
push 0
push 0
push 1
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov eax, dword [0x507e8c]
push eax
push 0
push 0
push 2
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov ecx, dword [0x507e90]
push ecx
push 0
push 0
push 3
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov edx, dword [0x507e94]
push edx
push 0
push 0
push 4
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov eax, dword [0x507e98]
push eax
push 0
push 0
push 5
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov ecx, dword [0x507e9c]
push ecx
push 0
push 0
push 6
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov edx, dword [0x507ea0]
push edx
push 0
push 0
push 7
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov eax, dword [0x507ea4]
push eax
push 0
push 0
push 8
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov ecx, dword [0x507ea8]
push ecx
push 0
push 0
push 9
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov edx, dword [0x507eac]
push edx
push 0
push 2
push 0xa
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov eax, dword [0x507eb0]
push eax
push 0
push 0
push 0xb
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov ecx, dword [0x507eb4]
push ecx
push 0
push 0
push 0xc
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov edx, dword [0x507eb8]
push edx
push 0
push 2
push 0xd
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov eax, dword [0x507ebc]
push eax
push 0
push 0
push 0xe
mov ecx, dword [0x5070d0]
call fcn.0041c45b
mov ecx, dword [0x507ec0]
push ecx
push 0
push 0
push 0xf
mov ecx, dword [0x5070d0]
call fcn.0041c45b
push 0
mov ecx, dword [0x5070d0]
call fcn.0041c4ad
mov edx, dword [0x50a074]
push edx
mov ecx, dword [0x5070d0]
call fcn.0041c4ad
mov eax, dword [0x5070d0]
mov dword [eax + 0xe4], 9
mov ecx, dword [0x5070d0]
mov dword [ecx + 0xe8], 0xa
mov edx, dword [0x5070d0]
mov dword [edx + 0xe0], 0xe
mov eax, dword [0x5070d0]
mov dword [eax + 0x118], fcn.00425fc0
mov ecx, dword [0x5070d0]
mov dword [ecx + 0x11c], 0x47e3dc
push 1
mov ecx, dword [0x5070d0]
call fcn.0041ce83
push 1
mov ecx, dword [0x5070d0]
call fcn.0041cc21
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [ebp - 0x14]
fstp qword [0x507e68]
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [ebp - 0x598]
fdiv qword [0x507e68]
call fcn.004ab6fc
mov dword [0x507f7c], eax
call fcn.00443fef
mov byte [0x50a033], 1
mov cl, byte [0x50a033]
mov byte [0x50a034], cl
movsx edx, byte [0x5080a2]
test edx, edx
je 0x47d50d
call fcn.0044465a
mov byte [0x50a033], al
jmp 0x47d517
call fcn.004445a5
mov byte [0x50a034], al
push 0
push 3
call fcn.0044449f
add esp, 8
mov eax, dword [0x507efc]
sub eax, 1
mov dword [0x507440], eax
mov ecx, dword [0x507440]
mov dword [0x50743c], ecx
mov edx, dword [0x50743c]
mov dword [0x507438], edx
mov eax, dword [0x507438]
mov dword [0x507434], eax
push 3
call fcn.00422961
add esp, 4
call fcn.0044409d
movsx ecx, byte [0x5080a2]
mov edx, 1
sub edx, ecx
test edx, edx
je 0x47d58a
movsx eax, byte [0x50a033]
test eax, eax
jne 0x47d588
push 0x1f
call fcn.0042a723
add esp, 4
jmp 0x47d59f
movsx ecx, byte [0x50a034]
test ecx, ecx
jne 0x47d59f
push 0x1f
call fcn.0042a723
add esp, 4
push 0x4feafc
push 0x50c780
lea edx, [ebp - 0x604]
push edx
call fcn.004c0285
mov dword [ebp - 0x644], eax
mov eax, dword [ebp - 0x644]
mov dword [ebp - 0x648], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x648]
call fcn.00401800
push eax
call fcn.00431623
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x604]
call fcn.004c003c
push 0x4feb0c
push 0x50c780
lea ecx, [ebp - 0x608]
push ecx
call fcn.004c0285
mov dword [ebp - 0x64c], eax
mov edx, dword [ebp - 0x64c]
mov dword [ebp - 0x650], edx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x650]
call fcn.00401800
push eax
call fcn.00431623
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x608]
call fcn.004c003c
push 0x4feb1c
push 0x507f04
push 0x4feb20
lea eax, [ebp - 0x60c]
push eax
call fcn.004c02f9
mov dword [ebp - 0x654], eax
mov ecx, dword [ebp - 0x654]
mov dword [ebp - 0x658], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x658]
push edx
lea eax, [ebp - 0x610]
push eax
call fcn.004c0285
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x65c]
mov dword [ebp - 0x660], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x660]
call fcn.00401800
push eax
push 0x4feb24
call fcn.0043140d
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x610]
call fcn.004c003c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60c]
call fcn.004c003c
push 0x507388
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x507358
push 0x507388
call fcn.00431f58
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x18]
call fcn.004017e0
mov byte [ebp - 4], 0xf
push str._statistics.txt
lea ecx, [ebp - 0x18]
call fcn.004c0179
lea edx, [ebp - 0x18]
push edx
push 0x50c780
lea eax, [ebp - 0x614]
push eax
call fcn.004c021f
mov dword [ebp - 0x664], eax
mov ecx, dword [ebp - 0x664]
mov dword [ebp - 0x668], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x668]
push edx
lea ecx, [ebp - 0x18]
call fcn.004c0129
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x614]
call fcn.004c003c
lea ecx, [ebp - 0x18]
call fcn.00401800
push eax
call fcn.00431b72
add esp, 4
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5a0]
push ecx
lea edx, [ebp - 0x590]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x59c]
push ecx
push 0x507348
lea ecx, [ebp - 0x18]
call fcn.00401800
push eax
call fcn.004321c1
add esp, 0x1c
test eax, eax
jne 0x47d83c
push 0x10
push 0x507348
push 0x507358
call fcn.004abde0
add esp, 0xc
test eax, eax
jne 0x47d812
mov edx, dword [ebp - 0x59c]
mov dword [0x5072f4], edx
mov eax, dword [ebp - 0x20]
mov dword [0x507370], eax
mov ecx, dword [ebp - 0x1c]
mov dword [0x507374], ecx
mov edx, dword [ebp - 0x590]
mov dword [0x507368], edx
mov eax, dword [ebp - 0x58c]
mov dword [0x50736c], eax
mov ecx, dword [ebp - 0x5a0]
mov dword [0x507340], ecx
mov edx, dword [ebp - 0x28]
mov dword [0x507328], edx
mov eax, dword [ebp - 0x24]
mov dword [0x50732c], eax
jmp 0x47d83c
mov ecx, dword [0x50736c]
push ecx
mov edx, dword [0x507368]
push edx
mov eax, dword [0x507374]
push eax
mov ecx, dword [0x507370]
push ecx
mov edx, dword [0x5072f4]
push edx
call fcn.00432461
add esp, 0x14
call fcn.00477d11
mov dword [ebp - 0x59c], eax
push 0x50c600
lea ecx, [ebp - 0x18]
call fcn.004c0179
movsx eax, byte [0x5085a5]
test eax, eax
je 0x47d888
mov ecx, dword [ebp - 0x59c]
and ecx, 1
test ecx, ecx
je 0x47d87b
push 0x4feb3c
lea ecx, [ebp - 0x18]
call fcn.004c03cc
jmp 0x47d888
push 0x4feb54
lea ecx, [ebp - 0x18]
call fcn.004c03cc
movsx edx, byte [0x5085a4]
test edx, edx
je 0x47d8bc
mov eax, dword [ebp - 0x59c]
and eax, 2
test eax, eax
je 0x47d8af
push 0x4feb6c
lea ecx, [ebp - 0x18]
call fcn.004c03cc
jmp 0x47d8bc
push 0x4feb88
lea ecx, [ebp - 0x18]
call fcn.004c03cc
mov ecx, dword [ebp - 0x59c]
and ecx, 3
test ecx, ecx
je 0x47d8e3
mov edx, dword [ebp - 0x59c]
and edx, 4
test edx, edx
jne 0x47d8e3
push str._modbus
lea ecx, [ebp - 0x18]
call fcn.004c03cc
push 0x50c604
lea eax, [ebp - 0x18]
push eax
call fcn.004608d0
and eax, 0xff
test eax, eax
je 0x47d90b
lea ecx, [ebp - 0x18]
call fcn.00401800
push eax
call fcn.0043158d
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
call fcn.004c003c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x588]
call fcn.00419b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret