Function at 0x437fd0
Capabilities:
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d353f
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xd8], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xe0], 1
call fcn.0044f790
mov dword [ebp - 4], 1
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
cmovae eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.cemsstore.dll
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x74]
call fcn.0042fd40
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x7c]
add eax, 0xd
mov dword [ebp - 0x34], 0
push eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0xe0], 5
call fcn.00428cc0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040e250
push str.emsstore.dat
lea ecx, [ebp - 0x44]
call fcn.0040d920
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00411840
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004096c0
mov ecx, esi
call fcn.0040eec0
add esi, 0x18
cmp dword [esi + 0x14], 0x10
jb 0x4380f2
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438110
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040e3a0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 7
call fcn.0040c2c0
push fcn.0040e540
push 2
push 0x18
lea eax, [ebp - 0xd4]
push eax
call fcn.0048dbcc
mov dword [ebp - 0xe0], 1
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x438189
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43817f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43850b
push edx
push ecx
call fcn.0048d8eb
add esp, 8
xor ebx, ebx
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
mov dword [ebp - 0x30], 0xf
cmovae eax, dword [ebp - 0x74]
push eax
mov byte [ebp - 0x44], 0
mov dword [ebp - 0xdc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4382e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DB_SQLOpen
push edi
call esi
push str.DB_SQLClose
push edi
mov dword [0x50d2c0], eax
call esi
push str.DB_SQLRead
push edi
mov dword [0x50d2bc], eax
call esi
push str.DB_NewDbRecord
push edi
mov dword [0x50d2b8], eax
call esi
push str.DB_FreeDbRecord
push edi
mov dword [0x50d2b4], eax
call esi
mov ecx, dword [0x50d2c0]
mov dword [0x50d2b0], eax
test ecx, ecx
je 0x4382e8
cmp dword [0x50d2bc], ebx
je 0x4382e8
cmp dword [0x50d2b8], ebx
je 0x4382e8
cmp dword [0x50d2b4], ebx
je 0x4382e8
test eax, eax
je 0x4382e8
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
push ebx
cmovae eax, dword [ebp - 0x5c]
push eax
call ecx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4382e8
push 0x19
push str.select__from_CEMS_DEVICE
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.0040e3a0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 9
push eax
call dword [0x50d2b4]
add esp, 4
cmp dword [ebp - 0xdc], 0
jne 0x438352
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4382d6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4382cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438510
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xdc]
test eax, eax
je 0x438302
push eax
call dword [0x50d2b0]
add esp, 4
test ebx, ebx
je 0x438310
push ebx
call dword [0x50d2bc]
add esp, 4
test edi, edi
je 0x43831b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x438460
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438456
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438515
jmp 0x438456
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0x1388
push dword [ebp - 0xdc]
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push ebx
call dword [0x50d2b8]
add esp, 0x18
test eax, eax
je 0x4383b6
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4382d6
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4382cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43851a
jmp 0x4382cc
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
test ecx, ecx
je 0x438401
mov eax, dword [ecx]
lea edx, [ebp - 0xf4]
push edx
push str.DeviceId
call dword [eax + 8]
test eax, eax
je 0x438401
mov edx, dword [ebp - 0xec]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4383e7
sub ecx, esi
mov esi, dword [ebp - 0xd8]
push ecx
push edx
mov ecx, esi
call fcn.0040e3a0
jmp 0x438407
mov esi, dword [ebp - 0xd8]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x43843f
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438435
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43851f
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x4382ee
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp edx, 0x10
jb 0x4384a6
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43849c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438524
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp edx, 0x10
jb 0x4384eb
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4384e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438529
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret 4
call fcn.004b0023
call fcn.004b0023
call fcn.004b0023
call fcn.004b0023
call fcn.004b0023
call fcn.004b0023
call fcn.004b0023
int3